Learn R Programming

bruceR (version 0.7.2)

formatN: Format "1234" to "1,234".

Description

Format "1234" to "1,234".

Usage

formatN(x, mark = ",")

Arguments

x

A number or numeric vector.

mark

Usually ",".

Value

Formatted character string.

See Also

format, formatF

Examples

Run this code
# NOT RUN {
formatN(1234)

# }

Run the code above in your browser using DataLab