encode.yamlet: Encode Yamlet

Description Usage Arguments Value See Also Examples

View source: R/yamlet.R

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

1
2
## 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

1
2
3
meta <- system.file(package = 'yamlet', 'extdata','quinidine.yaml')
meta <- as_yamlet(meta)
meta <- encode(meta)

yamlet documentation built on July 19, 2021, 1:06 a.m.