percent: Compute percentage

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Compute percentage

Usage

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

Arguments

x

a number or a vector

digits

how many digit of percentage

format

numeric format, "f" for float

Value

the percentage

Examples

1
pecent.vec <- percent(c(0.9, 0.98))

PathoStat documentation built on Nov. 8, 2020, 5:28 p.m.