set_age_open | R Documentation |
Set the lower limit of the open age group.
Given a vector of age group labels,
recode all age groups with a lower limit
greater than or equal to <lower>
to <lower>+
.
set_age_open(x, lower)
x |
A vector of age labels. |
lower |
An integer. The lower limit for the open age group. |
set_age_open()
requires that x
and
the return value have a
a five-year, single-year, or life table format,
as described in age_labels()
.
A modified version of x
.
set_age_open()
uses age_lower()
to identify
lower limits
age_labels()
for creating age labels from scratch
x <- c("100+", "80-84", "95-99", "20-24")
set_age_open(x, 90)
set_age_open(x, 25)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.