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