encode.yamlet: Encode Yamlet

View source: R/yamlet.R

encode.yamletR 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)

bergsmat/yamlet documentation built on Feb. 18, 2024, 5:50 a.m.