format_percentage: Format numbers as percentages

Description Usage Arguments Value Examples

View source: R/formatting.R

Description

This is a simple wrapper around scales::label_percent() to convert numeric input to percentages and return them as characters.

Usage

1

Arguments

x

a numeric vector to format.

...

other arguments passed on to scales::label_percent()

Value

A character vector of length(x).

Examples

1
2
x <- seq(0, 1, length.out = 5)
format_percentage(x)

milanmlft/MMmotley documentation built on Feb. 4, 2022, 7:42 a.m.