Learn R Programming

yamlet (version 1.2.0)

list2encoding: Coerce List to Encoding

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

list2encoding(x, ...)

Value

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

Arguments

x

list

...

ignored

See Also

Other encode: encode.yamlet()

Examples

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

Run the code above in your browser using DataLab