Skip to contents

percent() formats x as a percentage. For a wider range of formatters, consider the scales package.

Usage

percent(x)

Arguments

x

Numeric values.

Value

x formatted as a percent.

Examples

percent(0.5)
#> [1] "50%"