Select age bins flexibly

get_age_bins(x, width = 2)

Arguments

x

Vector of ages (in months)

width

Width of the age bins (in months, defaults to 2)