Skip to contents

Thin wrapper around scales::comma() tuned to onepagr's integer-count formatting needs: no decimal places, comma-grouped.

Usage

fmt_n(x)

Arguments

x

Numeric vector.

Value

Character vector.

Examples

fmt_n(c(1234, 56789))
#> [1] "1,234"  "56,789"