as_percentage_label: Format as percentage for output

Description Usage Arguments Value Examples

View source: R/stringr-like.R

Description

Vectorised conversion

Usage

1
as_percentage_label(x, decimal_places = 1, include_plus_sign = F)

Arguments

x

Numeric vector

decimal_places

Decimal places to display

include_plus_sign

prepend a "+" to the output if positive (if negative, a "-" must be prepended of course)

Value

Character vector

Examples

1
as_percentage_label(0.746) # gives "74.6%"

tidytidbits documentation built on March 8, 2021, 5:07 p.m.