View source: R/get_days_since.R
get_days_since | R Documentation |
Constructs a vector of days since a given date
get_days_since( fromyear, len, startmoy = 1, startdoy = 1, by = "months", origin = ymd("2001-01-01") )
fromyear |
An integer specifying the start year |
len |
An integer specifying the length of the returned vector |
startmoy |
An integer specifying the month of year (between 1 and 12) of the first entry of the returned vector. Defaults to 1. |
startdoy |
An integer specifying the day of year (between 1 and 365) of the first entry of the returned vector. Defaults to 1. |
by |
A character string specifying the "spacing" between dates.
Defaults to |
A vector of integers
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.