add_commas: Add commas to a large number

Description Usage Arguments Value Examples

View source: R/add_commas.R

Description

Convert a number to a string, with commas every 3rd digit

Usage

1

Arguments

numbers

Vector of non-negative numbers (will be rounded to integers)

Value

Character string with numbers written like "7,547,085".

Examples

1
add_commas(c(231, 91310, 2123, 9911001020, 999723285))

broman documentation built on May 29, 2017, 11:14 a.m.

Search within the broman package
Search all R packages, documentation and source code