numform (version 0.5.0)

f_comma: Comma Format Large Integers

Description

Add commas to larger integers.

Usage

f_comma(x, mark = ",", prefix = "", ...)

ff_comma(...)

Arguments

x

A vector of numbers (or string equivalents).

mark

The character to include every n places.

prefix

A string to append to the front of elements.

Other arguments passed to prettyNum.

Value

Returns a comma separated string of publication ready digits.

See Also

prettyNum

Examples

Run this code
# NOT RUN {
set.seed(4)
f_comma(sample(4:10, 5)^5)
f_comma(c(1234.12345, 1234567890, .000034034, 123000000000, -1234567))
# }

Run the code above in your browser using DataCamp Workspace