
Last chance! 50% off unlimited learning
Sale ends in
Create a formattable factor object
# S3 method for factor
formattable(x, ..., formatter = "vmap", preproc = NULL, postproc = NULL)
a factor object.
arguments to be passed to formatter
.
formatting function, vmap
in default.
pre-processor function that prepares x
for
formatting function.
post-processor function that transforms formatted output for printing.
a formattable
factor object.
# NOT RUN {
formattable(as.factor(c("a", "b", "b", "c")),
a = "good", b = "fair", c = "bad")
# }
Run the code above in your browser using DataLab