Create a formattable object
# Default S3 method
formattable(x, ..., formatter, preproc = NULL, postproc = NULL)an object.
arguments to be passed to formatter.
formatting function, formatC() in default.
pre-processor function that prepares x for
formatting function.
post-processor function that transforms formatted output for printing.
a formattable object that inherits from the original
object.
formattable(rnorm(10), formatter = "formatC", digits = 1)
#> [1] 1 0.2 1 0.5 0.6 -0.1 0.2 -0.09 2 1