## To get start, end and sequence of next 2 years,
## exclude current year
next2years <- next_n_years(n = 2)
## include current year
next2years_2 <- next_n_years(n = 2, include_current = TRUE)
## To get vector of date sequences
next_n_years(n = 2, part = "sequence")
next_n_years(n = 2)$sequence
seq(next2years)
## Get number of days of next 2 years
day_nums <- next_n_years(part = "length")
next_n_years()$length
length(next2years)
Run the code above in your browser using DataLab