months.numeric <- function(
x
) {
x %>%
lubridate::period(month = .) %>%
return()
}
robust_make_date <- function(
year,
month,
day
) {
date <- stringr::str_c(year, month, day, sep = "-")
date %>%
lubridate::ymd() %>%
return()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.