set_age_open {poputils} | R Documentation |
Specify Open Age Group
Description
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>+
.
Usage
set_age_open(x, lower)
Arguments
x |
A vector of age labels. |
lower |
An integer. The lower limit for the open age group. |
Details
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()
.
Value
A modified version of x
.
See Also
-
set_age_open()
usesage_lower()
to identify lower limits -
age_labels()
for creating age labels from scratch
Examples
x <- c("100+", "80-84", "95-99", "20-24")
set_age_open(x, 90)
set_age_open(x, 25)
[Package poputils version 0.3.1 Index]