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