f_pct: Format numeric vector as percent

View source: R/btools_formatting.r

f_pctR Documentation

Format numeric vector as percent

Description

f_pct Percent format - calls scales::label_percent

Usage

f_pct(num, ...)

Arguments

num

numeric vector to format

...

arguments passed to scales::label_percent

Details

format the vector using scales::label_percent

Value

formatted values as a character vector.

Examples

f_pct(1.2345)
f_pct(1.2345, scale=.1)
f_pct(1.2345, scale=.1, accuracy=0.01)

donboyd5/btools documentation built on Jan. 7, 2023, 10:47 p.m.