list2encoding: Coerce List to Encoding

Description Usage Arguments Value See Also Examples

View source: R/yamlet.R

Description

Tries to coerce a list to an encoding. Names are understood as decodes, and list values as codes. On failure, the list is returned unchanged.

Usage

1

Arguments

x

list

...

ignored

Value

an encoding (length-one character), or original list if error occurs

See Also

Other encode: encode.yamlet()

Examples

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

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