How many decimal places to round to for given variable(s)
Source:R/table_rounding_info.R
table_rounding_info.RdHow many decimal places to round to for given variable(s)
Arguments
- var
vector of variable names such as c("pctlowinc", "pm") or c(names_d, names_d_subgroups)
- varnametype
which column of map_headernames to use when looking for var, like "rname" or "api" or "long"
Examples
EJAM:::table_rounding_info("pm")
EJAM:::table_round(8.252345, "pm")
EJAM:::table_round(8, "pm")
cbind(EJAM:::table_rounding_info(names_all_r), fixcolnames(names_all_r, "r", "long"))