Learn R Programming

formattable (version 0.1.5)

formattable.factor: Create a formattable factor object

Description

Create a formattable factor object

Usage

"formattable"(x, ..., formatter = "vmap", preproc = NULL, postproc = NULL)

Arguments

x
a factor object.
...
arguments to be passed to formatter.
formatter
formatting function, vmap in default.
preproc
pre-processor function that prepares x for formatting function.
postproc
post-processor function that transforms formatted output for printing.

Value

a formattable factor object.

Examples

Run this code
formattable(as.factor(c("a", "b", "b", "c")),
  a = "good", b = "fair", c = "bad")

Run the code above in your browser using DataLab