Skip to contents

These wrapper functions apply the prettylabel function with preset options for formatting numbers, currencies, and percentages in plots or tables.

Usage

pl(num)

pl1(num)

pl_usd(num)

pl_pct(num)

pl_pct1(num)

Arguments

num

Numeric vector or single number to format.

Value

Character vector of formatted numbers.

Details

Note: This assumes you have a function named prettylabel available in your environment. If not, please provide or load it.

Examples

# Example usage if prettylabel is defined
pl(c(1234, 56789))
#> [1] "1,234"  "56,789"