powered by
This utility method can be used as a format function when converting trees to a data.frame
data.frame
FormatPercent(x, digits = 2, format = "f", ...)
A string corresponding to x, suitable for printing
A number
The number of digits to print
The format to use
Any other argument passed to formatC
formatC
data(acme) print(acme, prob = acme$Get("p", format = FormatPercent))
Run the code above in your browser using DataLab