percent_sep: Convert decimal to percent and add space before percent sign

Description Usage Arguments Value Examples

View source: R/juantools.R

Description

Convert decimal to percent and add space before percent sign

Usage

1
percent_sep(x, places = 2, sep = TRUE)

Arguments

x

Numeric

places

Integer; how many places to round to?

sep

Logical; add space before percent sign? Default is TRUE

Value

x String reprenting x as percent, with space added before percent sign

Examples

1
2
3
percent_sep(0.12345)
percent_sep(0.12345, places=3)
percent_sep(0.12345, sep=FALSE)

juanfung/juantools documentation built on Jan. 1, 2021, 7:12 a.m.