dategrp | R Documentation |
This assigns a date or date vector to a corresponding group of dates of some length in a given year. This is a helper function for making composites. The group is calculated from day 1 of the year. If no group length entered, this just uses the lubridate::week() function (7-day week length)
dategrp(dateval, grp_length)
dateval |
Date string or date formatted with as.Date() |
grp_length |
Number indicating length of group of days |
numeric value of "week" number
dategrp(dateval = "2020-03-27")
dategrp(dateval = c("2020-03-27","2020-04-27"), grp_length = 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.