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 number
The number of digits to print
The format to use
Any other argument passed to formatC
A string corresponding to x, suitable for printing
formatC
# NOT RUN { data(acme) print(acme, prob = acme$Get("p", format = FormatPercent)) # }
Run the code above in your browser using DataLab