as_yam.yamlet | R Documentation |
Coerces class yamlet to yam, negotiating the default keys. For each member of x, names of sub-members will be dropped if all previous such have been dropped. I.e., attribute order is preserved, and 'guide' (by default) will not be made implicit unless 'label' has already been encountered (and made implicit). Default keys are attached as the 'keys' attribute of the result.
## S3 method for class 'yamlet'
as_yam(
x,
...,
default_keys = getOption("yamlet_default_keys", list("label", "guide"))
)
x |
yamlet |
... |
ignored |
default_keys |
names that may be omitted in left subsets |
yam
Other yam:
as.character.yam()
,
as_yam.character()
,
as_yam()
as_yam(as_yamlet(c('id: subject','amt: dose')))
as_yam(as_yamlet(c('amt: [ dose, mg ]')))
as_yam(as_yamlet(c('amt: [ guide: mg, label: dose ]')))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.