percent: Convert a proportion to a percentage.

Description Usage Arguments Value Examples

View source: R/percent.R

Description

Convert a proportion to a percentage.

Usage

1
percent(x, digits = 1)

Arguments

x

A value to convert to a percentage.

digits

The number of decimal places to round to, passed to the round function.

Value

percent simply takes a proprtion and converts to a percentage by multiplying by 100 and rounding.

Examples

1
2
percent(0.43569)
percent(0.43569, digits = 2)

leebunce/leebunce documentation built on Nov. 18, 2018, 1:18 p.m.