as.character.yam {yamlet} | R 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()
,
as_yam.character()
,
as_yam.yamlet()
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]]"
)))
[Package yamlet version 1.2.0 Index]