FormatFixedDecimal | R Documentation |
Simple function that can be used as a format function when converting trees to a data.frame
FormatFixedDecimal(x, digits = 3)
x |
a numeric scalar or vector |
digits |
the number of digits to print after the decimal point |
A string corresponding to x, suitable for printing
data(acme)
print(acme, prob = acme$Get("p", format = function(x) FormatFixedDecimal(x, 4)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.