FormatPercent | R Documentation |
This utility method can be used as a format function when converting trees to a data.frame
FormatPercent(x, digits = 2, format = "f", ...)
x |
A number |
digits |
The number of digits to print |
format |
The format to use |
... |
Any other argument passed to formatC |
A string corresponding to x, suitable for printing
formatC
data(acme)
print(acme, prob = acme$Get("p", format = FormatPercent))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.