Description Usage Arguments Examples
This simple function is to facilitate something like decimal horizontal adjustment which demands each value has the same digits after the decimal point.
1 | round_text(x, digits = 2, na = NULL)
|
x |
a vector of numeric values. |
digits |
digits which is to be passed
to |
na |
how to show NAs. The default is
to show " NA", however, you can change it
to "NA" or simply |
1 2 | v=c(3, 3.1, 3.456, 3.452, 3.77, NA, 0, 10.56332)
res=round_text(v, 2, na=NA)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.