Learn R Programming

socialmixr (version 0.1.4)

limits_to_agegroups: Convert lower age limits to age groups.

Description

Mostly used for plot labelling

Usage

limits_to_agegroups(x, limits)

Arguments

x

age limits to transform

limits

lower age limits; if not given, will use all limits in x

Value

Age groups (limits separated by dashes)

Examples

Run this code
# NOT RUN {
limits_to_agegroups(c(0, 5, 10))
# }

Run the code above in your browser using DataLab