Period | R Documentation |
Converts a date into a character.
Period(x, by, anchor.date = as.Date("1970-01-01"), long.name = FALSE, ...)
x |
The date. |
by |
The period used in the conversion (e.g., "week", "year"). Special cases include:
|
anchor.date |
Supply a Date value to disambiguate multi-week periods.
When asking for two-week periods, four week-periods, etc, for a given
value of x, the choice is ambiguous. For example, when wanting the two-week
period for "2022-07-04", should the period cover the 2 weeks commencing
"2022-07-03" or the two weeks commencing "2022-06-26"? All multi-week periods
will be determined relative to the first day in the week which contains
the |
long.name |
Logical; if |
... |
Additional arguments passed to lubridate |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.