percent: Convert a number to a percentage.

Description Usage Arguments Value

View source: R/percent.R

Description

Convenience function to convert a number to a percentage.

Usage

1
percent(x, decimals = 1)

Arguments

x

A number.

decimals

Number of decimal places in final result (default = 1).

Value

The number expressed as a percentage.


mlaviolet/tidyepi documentation built on Feb. 8, 2021, 1:39 p.m.