| decorations.data.frame | R Documentation |
Retrieve the decorations of a data.frame; i.e., the metadata used to decorate it. Returns a list with same names as the data.frame. By default, 'class' and 'level' attributes are excluded from the result, as you likely don't want to manipulate these independently.
## S3 method for class 'data.frame'
decorations(
x,
...,
exclude_attr = getOption("yamlet_exclude_attr", c("class", "levels"))
)
x |
data.frame |
... |
optional unquoted column names to limit output (passed to |
exclude_attr |
attributes to remove from the result |
named list of class 'yamlet'
Other decorate:
as_decorated(),
as_decorated.default(),
decorate(),
decorate.character(),
decorate.data.frame(),
decorate.list(),
decorate_groups(),
decorate_groups.data.frame(),
decorations(),
decorations_groups(),
decorations_groups.data.frame(),
group_by_decorations(),
group_by_decorations.data.frame(),
redecorate()
# prepare a decorated data.frame
file <- system.file(package = 'yamlet', 'extdata','quinidine.csv')
x <- decorate(file)
# retrieve the decorations
decorations(x, Subject, time, conc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.