Format numeric columns.
Arguments
- tab
Table to format.
- cols
Character string of columns to format. defaults to
"all"
which will include all numeric variables intab
. Ifignore = TRUE
then the columns listed incols
will be not be formatted and all other columns intab
will be formatted.- type
The type of formatting to apply.
"pretty"
usesprettyNum
which uses commas (",") to mark big intervals."scientific"
uses scientific notation."decimal"
simply rounds to two decimal places.- ignore
Logical, whether to exclude the columns listed in
cols
and apply formatting to all other columns intab
.