Learn R Programming

scales (version 0.2.0)

percent_format: Percent formatter: multiply by one hundred and display percent sign.

Description

Percent formatter: multiply by one hundred and display percent sign.

Usage

percent_format()

percent(x)

Arguments

x
a numeric vector to format

Value

  • a function with single paramater x, a numeric vector, that returns a character vector

Examples

Run this code
percent_format()(runif(10))
percent(runif(10))
percent(runif(10, 1, 10))

Run the code above in your browser using DataLab