Learn R Programming

bruceR (version 2023.9)

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

Description

Format "1234" to "1,234".

Usage

formatN(x, mark = ",")

Value

Formatted character string.

Arguments

x

A number or numeric vector.

mark

Usually ",".

See Also

format, formatF

Examples

Run this code
formatN(1234)

Run the code above in your browser using DataLab