Question in R basic hands-on,
Create a variable L, and assign the value of the year (2018) to it.
Create another variable NL, assign the value of the next leap year using variable L, and then print NL."
I have tried as below, But am not getting the desired output, Please help me
L <- as.Date("2018")
NL <- L + timedelta(year=4)
print(NL)