percent: Convert a number to a percentage.

View source: R/percent.R

percentR Documentation

Convert a number to a percentage.

Description

Convenience function to convert a number to a percentage.

Usage

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 May 14, 2022, 10:04 p.m.