Description Usage Arguments Value
View source: R/calc_norm_perc.R
Calculate the normalized percentage of observations in a particular group (e.g. spending bin) within a larger group (e.g. enrollment month)
1 | calc_norm_perc(DT, x1, x2)
|
DT |
data.table |
x1 |
character, the variable you want the normalized percentage of |
x2 |
character vector, the variables you want to normalize by |
data.table of normalized perctages by group
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.