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>+
.
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()
.
See also
set_age_open()
usesage_lower()
to identify lower limitsage_labels()
for creating age labels from scratch
Examples
x <- c("100+", "80-84", "95-99", "20-24")
set_age_open(x, 90)
#> [1] "90+" "80-84" "90+" "20-24"
set_age_open(x, 25)
#> [1] "25+" "25+" "25+" "20-24"