Learn R Programming

hgutils (version 0.2.19)

sep_thousands: Adds comma's to separate thousands in numbers

Description

Adds comma's to separate thousands in numbers

Usage

sep_thousands(n)

Value

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

Arguments

n

a real number

Examples

Run this code
sep_thousands(13243.33) #13,243.33

Run the code above in your browser using DataLab