formattable.factor {formattable} | R Documentation |
Create a formattable factor object
Description
Create a formattable factor object
Usage
## S3 method for class 'factor'
formattable(x, ..., formatter = "vmap", preproc = NULL, postproc = NULL)
Arguments
x |
a factor object. |
... |
arguments to be passed to |
formatter |
formatting function, |
preproc |
pre-processor function that prepares |
postproc |
post-processor function that transforms formatted output for printing. |
Value
a formattable
factor object.
Examples
formattable(as.factor(c("a", "b", "b", "c")),
a = "good", b = "fair", c = "bad")
[Package formattable version 0.2.1 Index]