Description Usage Arguments Value See Also Examples
View source: R/date_to_cohort.R
Assign dates to one-month cohorts.
1 |
date |
Dates of events defining cohorts (typically births).
A vector of class |
A character vector with the same length as date
.
The output from date_to_cohort_month
is often processed further using format_cohort_month
.
Other functions for creating cohorts from dates are
date_to_cohort_year
and
and date_to_cohort_quarter
.
Other functions for creating one-month units
from dates are
date_to_age_month
,
date_to_period_month
,
and date_to_triangle_month
.
The interface for date_to_cohort_month
is identical
to that of date_to_period_month
.
1 2 3 | date_to_cohort_month(date = c("2024-03-27",
"2023-05-01",
"2022-11-09"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.