as_percent: Format a number as percentage.

View source: R/utils.R

as_percentR Documentation

Format a number as percentage.

Description

Internal helper function that is not exported.

Usage

as_percent(x, digits = 1)

Arguments

x

numeric vector to be formated as percentage

digits

requested number of decimal digits of the percentage

Value

number formatted as percentage character


incubate documentation built on Aug. 21, 2023, 5:11 p.m.