Learn R Programming

yamlet (version 0.7.7)

to_yamlet.list: Coerce list to yamlet Storage Format

Description

Coerces list to yamlet storage format. Operates recursively on list members.

Usage

# S3 method for list
to_yamlet(x, ...)

Arguments

x

object

...

ignored

Value

length-one character

See Also

Other to_yamlet: to_yamlet.NULL(), to_yamlet.character(), to_yamlet.default(), to_yamlet()

Examples

Run this code
# NOT RUN {
to_yamlet(list())
to_yamlet(list(a = 1, b = 2, c = NULL))
to_yamlet(list(a = 1, b = list(c = 3, d = list(e = 4, f = 'g', 'h'))))
to_yamlet(setNames(1:3, c('a','b',NA)))
to_yamlet(setNames(c(1,2,NA), c('a','b','c')))

# }

Run the code above in your browser using DataLab