Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

formattable.default

Create a formattable object


Description

Create a formattable object

Usage

## Default S3 method:
formattable(x, ..., formatter, preproc = NULL, postproc = NULL)

Arguments

x

an object.

...

arguments to be passed to formatter.

formatter

formatting function, formatC 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 object that inherits from the original object.

Examples

formattable(rnorm(10), formatter = "formatC", digits = 1)

formattable

Create 'Formattable' Data Structures

v0.2.1
MIT + file LICENSE
Authors
Kun Ren [aut, cre], Kenton Russell [aut]
Initial release
2021-01-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.