cf: Comma Format

Description Usage Arguments Value See Also Examples

View source: R/operators.R

Description

shorthand for scales::comma, print value in comma format

Usage

1
cf(x)

Arguments

x

numeric value or numeric vector

Value

comma formatted vector

See Also

comma in scales package

Examples

1
2
3
4
5
6
7
# useful for evaluation metrics
big_num = 1000000L
cf(big_num)

# vectorized version
big_vec = seq(1e+10, 5e+10, 1e+10)
cf(big_num)

ShaulAb/typeless documentation built on May 28, 2019, 3:15 p.m.