Learn R Programming

yamlet (version 1.2.1)

as.character.yam: Coerce Yam to Character

Description

Coerces class yam to character. Forms the basis for a yamlet emitter.

Usage

# S3 method for yam
as.character(x, ...)

Value

character

Arguments

x

yam

...

ignored; keys is an attribute of yam

See Also

Other yam: as_yam(), as_yam.character(), as_yam.yamlet()

Examples

Run this code
foo <- as_yamlet(c('id: subject','amt: dose'))
class(foo)
bar <- as_yam(foo)
class(bar)
as.character(bar)
as.character(
as_yam(
as_yamlet(
"race: [label: race, guide: [ white: 0, black: 1, asian: 2 ], multiple: ['yes': 1, 'no': 0]]"
)))

Run the code above in your browser using DataLab