Description Usage Arguments Value
View source: R/format_values.R
Consistent formatting options across all summarizeNHTS tables/visualizations.
1 2 3 4 | format_values(x, digits = getOption("HTS.format.digits"),
percentage = getOption("HTS.format.percentage"),
scientific = getOption("HTS.format.scientific"),
multiplier = getOption("HTS.format.multiplier"))
|
x |
Numeric vector. |
digits |
integer. Number of decimal places to use. |
percentage |
logical. Treat proportions as percentages? |
scientific |
logical. Use scientific notation for number formatting? |
multiplier |
numeric. A multiplier to use for numeric value display (i.e. For "In Thousands", use multiplier = 1000) |
Formatted character vector, the same length as x.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.