as_yamlet.listR Documentation

Coerce List to Yamlet

Description

Coerces list to yamlet. Assigns class 'yamlet'. Checks that list has names.

Usage

## S3 method for class 'list'
as_yamlet(x, ...)

Arguments

x

list

...

ignored

Value

yamlet

See Also

Other yamlet: [.yamlet(), as.character.yamlet(), as_yamlet.character(), as_yamlet.data.frame(), as_yamlet.yamlet(), as_yamlet.yam(), as_yamlet(), print.yamlet()

Examples

x <- list(a = 2, b = 3)
as_yamlet(x)