Learn R Programming

yamlet (version 0.6.5)

encode.yamlet: 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 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

Run this code
# NOT RUN {
meta <- system.file(package = 'yamlet', 'extdata','quinidine.yaml')
meta <- as_yamlet(meta)
meta <- encode(meta)
# }

Run the code above in your browser using DataLab