Description Usage Arguments Details See Also Examples
View source: R/chk-composite.R
If unit
is "months"
,
then "2000-03-01"
is the first day of the specified
unit, but "2000-03-02"
is not.
1 2 3 4 5 6 7 8 9 10 11 |
x |
A scalar or vector of dates, or values that can be coerced to dates. |
name |
The name for |
unit |
Measurement units for time, eg |
chk_first_day_unit_consec
adds the requirement
that the dates be consecutive.
1 2 3 4 5 | x <- "2020-01-01"
chk_first_day_unit_scalar(x, name = "x", unit = "year")
x <- c("2020-01-01", "2020-02-01")
chk_first_day_unit_vector(x, name = "x", unit = "month")
chk_first_day_unit_consec(x, name = "x", unit = "month")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.