View source: R/tbl-format-body.R
tbl_format_body | R Documentation |
For easier customization, the formatting of a tibble is split
into three components: header, body, and footer.
The tbl_format_body()
method is responsible for formatting the body
of a tibble.
Override this method if you need to change the appearance of all parts
of the body.
If you only need to change the appearance of a single data type,
override vctrs::vec_ptype_abbr()
and pillar_shaft()
for this data type.
tbl_format_body(x, setup, ...)
x |
A tibble-like object. |
setup |
A setup object returned from |
... |
These dots are for future extensions and must be empty. |
A character vector.
setup <- tbl_format_setup(palmerpenguins::penguins)
tbl_format_body(palmerpenguins::penguins, setup)
# Shortcut for debugging
tbl_format_body(setup)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.