to_percent: Format a proportion as a printed percent

View source: R/old_taxa--internal.R

to_percentR Documentation

Format a proportion as a printed percent

Description

Format a proportion as a printed percent

Usage

to_percent(prop, digits = 3, ...)

Arguments

prop

The proportion

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.)

...

passed to 'format'

Value

character


grunwaldlab/metacoder documentation built on Feb. 22, 2024, 3:47 a.m.