encode.yamlet {yamlet} | R Documentation |
Encode Yamlet
Description
Encodes yamlet. Each 'guide' element with length > 1
is converted to an encoding, if possible. If data
is supplied, conditional guides will be ignored.
Usage
## S3 method for class 'yamlet'
encode(x, ..., target = "guide", data = NULL)
Arguments
x |
yamlet |
... |
ignored |
target |
attribute to encode |
data |
optional data.frame for guide context |
Value
yamlet, with guide elements possibly transformed to encodings
See Also
Other encode:
list2encoding()
Examples
meta <- system.file(package = 'yamlet', 'extdata','quinidine.yaml')
meta <- as_yamlet(meta)
meta <- encode(meta)
[Package yamlet version 1.2.5 Index]