Learn R Programming

socialmixr (version 0.3.2)

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

Description

Operates on lower limits

Usage

reduce_agegroups(x, limits)

Value

vector with the new age groups

Arguments

x

vector of limits

limits

new limits

Examples

Run this code
reduce_agegroups(seq_len(20), c(0, 5, 10))

Run the code above in your browser using DataLab