percent: Convert proportions in percentage strings with the % sign.

View source: R/utils.R

percentR Documentation

Convert proportions in percentage strings with the % sign.

Description

Transforms proportions in strings with percent sign (with or without brackets).

Usage

percent(x, format = "%0.1f")

Arguments

x

real number (proportion)

format

to pass to the sprintf function

Examples

percent(0.15)

mrblasco/blasco documentation built on Nov. 22, 2022, 9:17 a.m.