Number formats

num_accounting() parse_accounting()

Numeric vector with accounting format

num_comma() parse_comma()

Numeric vector with thousands separators

num_currency() parse_currency()

Numeric vector with currency format

num_digits()

Numeric vector showing pre-specific digits

num_percent() parse_percent()

Numeric vector with percentage representation

num_scientific()

Numeric vector with scientific format

Generic formats

prefix()

Formattable object with prefix

suffix()

Formattable object with suffix

Other functions

area()

Create an area to apply formatter

as.datatable()

Generic function to create an htmlwidget

as.datatable(<formattable>)

Convert formattable to a DT::datatable() htmlwidget

as.htmlwidget()

Generic function to create an htmlwidget

as.htmlwidget(<formattable>)

Convert formattable to an htmlwidget

color_bar()

Create a color-bar formatter

color_text()

Create a color-text formatter

color_tile()

Create a color-tile formatter

csscolor()

Generate CSS-compatible color strings

format_table()

Format a data frame with formatter functions

formattable-package

The formattable package

formattable()

Generic function to create formattable object

formattable(<Date>)

Create a formattable Date vector

formattable(<POSIXct>)

Create a formattable POSIXct vector

formattable(<POSIXlt>)

Create a formattable POSIXlt vector

formattable(<data.frame>)

Create a formattable data frame

formattable(<default>)

Create a formattable object

formattable(<factor>)

Create a formattable factor object

formattable(<logical>)

Create a formattable logical vector

formattable(<numeric>)

Create a formattable numeric vector

formattableOutput()

Widget output function for use in Shiny

formatter()

Create a formatter function making HTML elements

gradient()

Create a matrix from vector to represent colors in gradient

icontext()

Create icon-text elements

is.formattable()

Test for objects of 'formattable' class

normalize()

Normalize a vector to fit zero-to-one scale

normalize_bar()

Create a color-bar formatter using normalize

proportion()

Rescale a vector relative to the maximal absolute value in the vector

proportion_bar()

Create a color-bar formatter using proportion

qrank()

Quantile ranks of a vector

renderFormattable()

Widget render function for use in Shiny

style()

Create a string-representation of CSS style

vmap()

Vectorized map from element to case by index or string value