Last chance! 50% off unlimited learning
Sale ends in
Coerces yamlet to character. See also as_yamlet.character
.
# S3 method for yamlet
as.character(x, ...)
yamlet
passed to as.character.yam
and as_yam.yamlet
character
Other yamlet:
[.yamlet()
,
as_yamlet.character()
,
as_yamlet.data.frame()
,
as_yamlet.list()
,
as_yamlet.yamlet()
,
as_yamlet.yam()
,
as_yamlet()
,
print.yamlet()
# NOT RUN {
as.character(as_yamlet('ID: subject identifier'))
as.character(as_yamlet(c('id: subject','amt: dose')))
as.character(as_yamlet(c('id: subject\namt: dose')))
foo <- as_yamlet(system.file(package = 'yamlet', 'extdata','quinidine.yaml'))
class(foo)
writeLines(as.character(foo))
identical(foo, as_yamlet(as.character(foo)))
identical(as.character(foo), as.character(as_yamlet(as.character(foo))))
file <- system.file(package = 'yamlet','extdata','quinidine.csv')
file
foo <- resolve(decorate(file))
as.character(as_yamlet(foo))
as.character(as_yamlet(foo, exclude_attr = 'class'))
# }
Run the code above in your browser using DataLab