percent: Convert a proportion to a percentage.

Description Usage Arguments Value Examples

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 May 20, 2019, 4:06 p.m.