View source: R/misc_functions.R
agegrp_name | R Documentation |
'agegrp_name' generates names for age-group bands given lower and upper age limits, and band width
agegrp_name(
min_age = 0L,
max_age = 85L,
grp_width = 5L,
grp_lessthan_1 = TRUE,
match_input = FALSE,
match_input_max_age = max_age
)
min_age |
A non-negative integer. The lower age limit for which names will be generated. |
max_age |
A non-negative integer. The upper age limit for which names will be generated. |
grp_width |
A positive integer. The band width of the age-groups. |
grp_lessthan_1 |
A logical scalar. if |
match_input |
A logical scalar. If |
match_input_max_age |
a non-negative integer. See above. |
A character vector of with the names for the age-groups.
agegrp_name(20, 79, 5)
agegrp_name(20, 80, 5)
agegrp_name(0, 80, 10, TRUE)
agegrp_name(20, 30, 5, FALSE, TRUE)
agegrp_name(20, 30, 5, FALSE, TRUE)
agegrp_name(20, 30, 5, FALSE, TRUE, 32)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.