autoformat: Autoformat

Description Usage Arguments

View source: R/autoformat.R

Description

Automatically formats a number or vector of numbers to a specified format

Usage

1
autoformat(x, scheme = "KMBT", format = NULL)

Arguments

x

Number or numeric vector

scheme

Formatting scheme to apply. Default is "KMBT", meaning number will be shown as trillions (T), billions (B), millions (M), thousands (K), or ones. In the case of any format greater than ones, the number will be rounded to one decimal place.

format

Format to apply (in absence of a scheme)


Prometheus77/actools documentation built on March 7, 2020, 11:01 a.m.