These functions performs two tasks. It lumps all ages greater than the
plus group into that age, and it filters data only to those greater than
or equal to the minimum age. adjust_plus_min_ages works on a vector
whereas adjust_plus_min_ages_df words on a data.frame
adjust_plus_min_ages_df(data, minage = NULL, pls_grp = NULL)adjust_plus_min_ages(age_vec, minage = NULL, pls_grp = NULL)
A data.frame similar to data, but with ages less than
minage excluded and ages >= plus_group aggregated into that age
Data with age as a column, or a numeric vector of ages
Numeric. The minimum age; everything else is excluded
Numeric. The plus group; all ages older will be lumped into this group
A vector of ages