View source: R/year_month_seq.R
year_month_seq | R Documentation |
generates sequence of "year_month" strings over a time period that includes all months in the time period
year_month_seq(start_date, end_date)
start_date |
the start_date for the time period |
end_date |
the end date for the time period |
character vector with elements in the form "year_month". e.g. c("2018-01", "2018-02")
start <- as.Date("2018-01-07") end <- as.Date("2018-03-01") year_month_seq(start, end)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.