canonical.yamlet | R Documentation |
Enforces canonical attribute order for class 'yamlet'. Set of default_keys will be augmented with all observed attribute names and will be expanded or reduced as necessary for each data item.
## S3 method for class 'yamlet'
canonical(
x,
default_keys = getOption("yamlet_default_keys", list("label", "guide")),
...
)
x |
yamlet |
default_keys |
attribute names in preferred order |
... |
ignored |
decorated
Other canonical:
canonical.decorated()
,
canonical()
library(magrittr)
x <- data.frame(x = 1, y = 1, z = factor('a'))
x %<>% decorate('
x: [ guide: mm, desc: this, label: foo ]
"y": [ guide: bar, desc: other ]
')
decorations(x)
decorations(canonical(x))
canonical(decorations(x))
write_yamlet(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.