powered by
Simple function that can be used as a format function when converting trees to a data.frame
data.frame
FormatFixedDecimal(x, digits = 3)
A string corresponding to x, suitable for printing
a numeric scalar or vector
the number of digits to print after the decimal point
data(acme) print(acme, prob = acme$Get("p", format = function(x) FormatFixedDecimal(x, 4)))
Run the code above in your browser using DataLab