Converts a number_format specification into a list of big.mark
and decimal.mark values used by all downstream formatting functions.
Supports named presets, custom two-element vectors, and the global
summata.number_format option.
Arguments
- number_format
Character string specifying a named preset, a two-element character vector
c(big.mark, decimal.mark), orNULLto use the global option (falling back to"us").Named presets:
"us"Comma thousands, period decimal: 1,234.56
"eu"Period thousands, comma decimal: 1.234,56
"space"Thin-space thousands, period decimal: 1 234.56 (SI/ISO 31-0 standard)
"none"No thousands separator, period decimal: 1234.56
Custom vector:
c(",", ".")orc(".", ",")etc. The first element isbig.mark, the second isdecimal.mark.