Learn R Programming

humanize (version 0.2.0)

number_as_comma: Convert an number to a string with comma separation

Description

Just a wrapper around format with defaults for full digits

Usage

number_as_comma(value)

Arguments

value

A numeric

Value

A string with comma separation every three digits

Examples

Run this code
# NOT RUN {
number_as_comma(1000)
number_as_comma(10000)
# }

Run the code above in your browser using DataLab