as.character.yam: Coerce Yam to Character

View source: R/yamlet.R

as.character.yamR Documentation

Coerce Yam to Character

Description

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

Usage

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

Arguments

x

yam

...

ignored; keys is an attribute of yam

Value

character

See Also

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

Examples

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]]"
)))


bergsmat/yamlet documentation built on Feb. 18, 2024, 5:50 a.m.