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. 9, 2018, 6 p.m.