alias_as_fmt_fn | R Documentation |
Accepted aliases are non-negative integers and strings.
The integers are converted to functions that round the statistics to the number of decimal places to match the integer.
The formatting strings come in the form "xx"
, "xx.x"
, "xx.x%"
, etc.
The number of x
s that appear after the decimal place indicate the number of
decimal places the statistics will be rounded to.
The number of x
s that appear before the decimal place indicate the leading
spaces that are added to the result.
If the string ends in "%"
, results are scaled by 100 before rounding.
alias_as_fmt_fn(x, variable, stat_name)
x |
( |
variable |
( |
stat_name |
( |
a function
alias_as_fmt_fn(1)
alias_as_fmt_fn("xx.x")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.