as.character.yam: Coerce Yam to Character

Description Usage Arguments Value See Also Examples

View source: R/yamlet.R

Description

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

Usage

1
2
## 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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]]"
)))

yamlet documentation built on July 19, 2021, 1:06 a.m.