Learn R Programming

sjmisc (version 2.6.3)

big_mark: Formats large numbers with big marks

Description

Formats large numbers with big marks

Usage

big_mark(x, big.mark = ",", ...)

Arguments

x

A vector or data frame. All numeric inputs (including numeric character) vectors) will be prettified.

big.mark

Character, used as mark between every 3 decimals before the decimal point.

...

Other arguments passed down to the prettyNum-function.

Value

A prettified x as character, with big marks.

Examples

Run this code
# NOT RUN {
# simple big mark
big_mark(1234567)

# big marks for several values at once, mixed numeric and character
big_mark(c(1234567, "55443322"))

# pre-defined width of character output
big_mark(c(1234567, 55443322), width = 15)

# }

Run the code above in your browser using DataLab