Create a discrete age variable for each of the length(pop$age_group) distinct age groups

create_discrete_age_variable(ages, pop)

Arguments

ages

Vector of ages from create_continuous_age_variable

pop

Vector of integer ages

Value

discrete age variable