format_number: using formattable functions to format a vector given its type

Description Usage Arguments Value

View source: R/utils.R

Description

using formattable functions to format a vector given its type

Usage

1
2
format_number(x, type, digits = 0, symbol = "$",
  remove_infinite = TRUE)

Arguments

x

a numeric vector

type

type for the vector, valid values are "currency", "percent", "comma" and "accounting"

digits

digits for the number

symbol,

currency symbol. only works when type is currency.

remove_infinite

default to TRUE. Conver NA,NaN, Inf ... to ""

Value

a character vector with formatted numbers


yusuzech/shinyEx documentation built on Nov. 5, 2019, 1:22 p.m.