original_units_var_formatter | R Documentation |
formats a var-stat-strata array by var, with rounding potentially rounding a bit less for an "adj.diff" column
original_units_var_formatter(arr, digits, var_format = list())
arr |
numeric array |
digits |
number of digits for rounding |
var_format |
A list of lists. Each named item of the outer list will be matched to a variable. The inner lists should have two items, 'mean' and 'diff'. The first formats statistics based on averages. The 'diff' item should format statistics that are differences. |
array of same dimension as arr but of type character
Hansen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.