format_perc_api2lm: Format percentages

format_perc_api2lmR Documentation

Format percentages

Description

A recreation of the stats:::format.prec function that is only available internally to the stats package.

Usage

format_perc_api2lm(probs, digits)

Arguments

probs

A vector of probabilities.

digits

a positive integer indicating how many significant digits are to be used for numeric and complex x. The default, NULL, uses getOption("digits"). This is a suggestion: enough decimal places will be used so that the smallest (in magnitude) number has this many significant digits, and also to satisfy nsmall. (For more, notably the interpretation for complex numbers see signif.)

Value

A vector of percentages

See Also

format

Examples

format_perc_api2lm(c(0.523423, 0.9098192, 0.951289), digits = 1)
format_perc_api2lm(c(0.523423, 0.9098192, 0.951289), digits = 3)

api2lm documentation built on July 9, 2023, 5:52 p.m.