Learn R Programming

yamlet (version 0.6.5)

to_yamlet.character: Coerce Character to Yamlet Storage Format

Description

Coerces character to yamlet storage format. Named character is processed as a named list.

Usage

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

Arguments

x

character

...

ignored

Value

length-one character

See Also

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

Examples

Run this code
# NOT RUN {
to_yamlet('foo')
to_yamlet(c('a','b'))
to_yamlet(c(a = 'a',b = 'b'))
to_yamlet(c(no = 'n', yes = 'y'))
# }

Run the code above in your browser using DataLab