FormatPercent: Format a Number as a Percentage
Description
This utility method can be used as a format function when converting trees to a data.frameUsage
FormatPercent(x, digits = 2, format = "f", ...)
Arguments
digits
The number of digits to print
...
Any other argument passed to formatC
Value
- A string corresponding to x, suitable for printing