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))

mani2012/PathoStat documentation built on April 3, 2020, 7:41 p.m.