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