percent: Format decimals to percentages

View source: R/utils.R

percentR Documentation

Format decimals to percentages

Description

Format decimals to percentages

Usage

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

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


compbiomed/animalcules documentation built on Feb. 7, 2024, 12:13 p.m.