View source: R/manipulate_dates.R
date_yq | R Documentation |
creates a quarterly date vector from a date vector
date_yq(x)
x |
a date |
date vector
seq.Date(lubridate::ymd(20200101), lubridate::ymd(20220101), length.out = 10) -> d1
d1 %>%
tibble::enframe() %>%
dplyr::mutate(YQ = date_yq(value))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.