Coerces data.frame to yamlet by calling decorations.
Usage
# S3 method for class 'data.frame'
as_yamlet(x, ...)Arguments
- x
data.frame
- ...
passed to
decorations
Examples
library(csv)
file <- system.file(package = 'yamlet', 'extdata','quinidine.csv')
x <- decorate(as.csv(file))
as_yamlet(x)
#> - Subject:
#> - time:
#> - conc:
#> - dose:
#> - interval:
#> - Age:
#> - Height:
#> - Weight:
#> - Race:
#> - Smoke:
#> - Ethanol:
#> - Heart:
#> - Creatinine:
#> - glyco: