Learn R Programming

huxtable (version 5.5.7)

fmt_pretty: Use prettyNum() to format numbers

Description

Use prettyNum() to format numbers

Usage

fmt_pretty(big.mark = ",", ..., scientific = FALSE)

Value

An object you can pass into number_format().

Arguments

big.mark, scientific, ...

Passed to prettyNum().

See Also

Other format functions: fmt_percent()

Examples

Run this code

jams$Sales <- c("Sales", 35000,
      55500, 20000)
set_number_format(jams, -1, "Sales",
      fmt_pretty())

Run the code above in your browser using DataLab