Format an object using a comma and rounding to the nearest integer.

format_big_number(x, digits = 0)

Arguments

x

A vector that will be passed to format().

digits

The number of digits you want to include when rounding and using round(digits = digits).

Value

Character values are returned using format().

Examples

# Remove tenth
format_big_number(1.1)
#> [1] "1"