Description Usage Arguments Value Author(s) Examples
Calculate age groups in years
1 | calc_agegroup(age, breaks = c(0, 10, 20, 30, 40, 50, 60, 70, 80, Inf))
|
age |
a numeric vector of ages |
breaks |
a numeric vector defining break points for age groups (the final value must be infinite) |
a factor vector containing age groups in years
Daniel Gardiner (daniel.gardiner@phe.gov.uk)
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.