percent: Format decimals to percentages

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Format decimals to percentages

Usage

1
percent(x, digits = 2, format = "f")

Arguments

x

An array of decimals

digits

number of digits

format

f

Value

An array of formatted strings

Examples

1
2
nums <- c(0.42, 0.15, 0.4, 0.563, 0.2)
percent(nums)

animalcules documentation built on Nov. 8, 2020, 6:47 p.m.