create_groupVariable {APCtools} | R Documentation |
Internal helper to create a group variable as base for a density matrix
Description
Internal helper function to create a group variable based on the
categorization of either age, period or cohort. To be called from within
plot_densityMatrix
.
Usage
create_groupVariable(dat, APC_var, groups_list)
Arguments
dat |
Dataset with a column |
APC_var |
One of |
groups_list |
A list with each element specifying the borders of one
row or column in the density matrix. E.g., if the period should be visualized
in decade columns from 1980 to 2009, specify
|
Value
Vector for the grouping that can be added as additional column to the data.
[Package APCtools version 1.0.4 Index]