Cross tabulate compartments and age

cross_tab_compartments_age(compartments, age, num_ages, compartment_names)

Arguments

compartments

a individual::CategoricalVariable

age

a individual::IntegerVariable

num_ages

number of age groups

compartment_names

a vector giving category names of the individual::CategoricalVariable