Learn R Programming

socialmixr (version 0.1.4)

reduce_agegroups: Reduce the number of age groups given a broader set of limits

Description

Operates on lower limits

Usage

reduce_agegroups(x, limits)

Arguments

x

vector of limits

limits

new limits

Value

vector with the new age groups

Examples

Run this code
# NOT RUN {
reduce_agegroups(seq_len(20), c(0, 5, 10))
# }

Run the code above in your browser using DataLab