Learn R Programming

yamlet (version 1.2.0)

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)

Value

yamlet, with guide elements possibly transformed to encodings

Arguments

x

yamlet

...

ignored

target

attribute to encode

data

optional data.frame for guide context

See Also

Other encode: list2encoding()

Examples

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

Run the code above in your browser using DataLab