Description Usage Arguments Value See Also Examples
View source: R/cleanNumberFormat.R
cleanNumberFormat
applies commonly used numeric
formatting conventions to numeric vectors and returns them as character
vectors
1  cleanNumberFormat(x, type, digits = 0)

x 
numeric vector to format 
type 
string describing the format type; valid values are

digits 
nonnegative integer value indicating the number of decimal places to be used 
A character vector of formatted numbers.
1 2 3 4 5  x < rnorm(5)
print(x)
cleanNumberFormat(x, "pct", 1)
cleanNumberFormat(x*10000, "int")
cleanNumberFormat(x*10000, "dlr", digits = 2)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.