Learn R Programming

hgutils (version 0.2.11)

sep_thousands: Adds comma's to separate thousands in numbers

Description

Adds comma's to separate thousands in numbers

Usage

sep_thousands(n)

Arguments

n

a real number

Value

A string with the number and thousands separated by comma's.

Examples

Run this code
# NOT RUN {
sep_thousands(13243.33) #13,243.33
# }

Run the code above in your browser using DataLab