format_comma: Format numbers with commas for pretty printing

Description Usage Arguments Value See Also Examples

Description

format_comma outputs the given numeric vector with a comma thousands separator for pretty printing.

Usage

1
format_comma(x, trim = TRUE, ...)

Arguments

x

The numeric vector.

trim

logical; if FALSE, logical, numeric and complex values are right-justified to a common width: if TRUE the leading blanks for justification are suppressed (default: TRUE).

Value

A character version of x where thousands are separated by comma.

See Also

format

Examples

1
2
3
4
5
## Not run: 
format_comma(vars$START)
format_comma(vars$END)

## End(Not run)

bahlolab/varpr documentation built on May 11, 2019, 5:26 p.m.