format_perc_api2lm {api2lm} | R Documentation |
A recreation of the stats:::format.prec
function that is only available internally to the stats
package.
format_perc_api2lm(probs, digits)
probs |
A vector of probabilities. |
digits |
a positive integer indicating how many significant digits
are to be used for
numeric and complex |
A vector of percentages
format_perc_api2lm(c(0.523423, 0.9098192, 0.951289), digits = 1)
format_perc_api2lm(c(0.523423, 0.9098192, 0.951289), digits = 3)