## To get start, end and sequence of next 2 weeks,
## exclude current week
next2weeks <- next_n_weeks(n = 2)
## include current week
next2weeks_2 <- next_n_weeks(n = 2, include_current = TRUE)
## Get next 2 week with start on Sunday
nextWeek <- next_n_weeks(n = 2, week_start = 7)
## To get vector of date sequences
next_n_weeks(n = 2, part = "sequence")
next_n_weeks(n = 2)$sequence
seq(next2weeks)
## Get number of days of next 2 weeks
day_nums <- next_n_weeks(part = "length")
next_n_weeks()$length
length(next2weeks)
Run the code above in your browser using DataLab