Writes data.frame attributes as yamlet.
The data.frame method for io_yamlet.
Similar to write_yamlet, but returns (description of) con.
Arguments
- x
data.frame
- con
passed to
writeLines- eol
end-of-line; passed to
writeLinesassep- useBytes
passed to
writeLines- default_keys
character: default keys for the first n anonymous members of each element
- fileEncoding
if
conis character, passed tofileasencoding- ...
passed to
as_yamlet
See also
Other interface:
canonical.decorated(),
classified.data.frame(),
decorate.character(),
decorate.data.frame(),
desolve.decorated(),
enscript.decorated(),
ggplot.decorated(),
io_csv.character(),
io_csv.data.frame(),
io_res.character(),
io_res.decorated(),
io_table.character(),
io_table.data.frame(),
io_yamlet.character(),
is_parseable.default(),
mimic.default(),
modify.default(),
promote.list(),
read_yamlet(),
resolve.decorated(),
selected.default(),
write_yamlet()
Other io:
io_csv(),
io_csv.character(),
io_csv.data.frame(),
io_res(),
io_res.character(),
io_res.decorated(),
io_table(),
io_table.character(),
io_table.data.frame(),
io_yamlet(),
io_yamlet.character(),
io_yamlet.yamlet()
Examples
library(csv)
file <- system.file(package = 'yamlet', 'extdata','quinidine.csv')
x <- decorate(file)
out <- file.path(tempdir(), 'out.yamlet')
io_yamlet(x, out)
io_yamlet(out)
#> - Subject
#> - label: patient identifier
#> - time
#> - label: time since start of study
#> - guide: h
#> - conc
#> - label: quinidine serum concentration
#> - guide: mg/L
#> - dose
#> - label: quinidine administered dose
#> - guide: mg
#> - interval
#> - label: inter-dose interval
#> - guide: h
#> - Age
#> - label: baseline subject age
#> - guide: year
#> - Height
#> - label: baseline subject height
#> - guide: in
#> - Weight
#> - label: subject body weight
#> - guide: kg
#> - Race
#> - label: subject race
#> - guide: Caucasian, Latin, Black
#> - Smoke
#> - label: smoking status
#> - guide: 'no', 'yes'
#> - Ethanol
#> - label: ethanol abuse status
#> - guide: none, current, former
#> - Heart
#> - label: congestive heart failure
#> - guide: No/Mild, Moderate, Severe
#> - Creatinine
#> - label: creatinine clearance
#> - guide
#> - < 50 mg/min: < 50
#> - '>= 50 mg/min': '>= 50'
#> - glyco
#> - label: alpha-1 acid glycoprotein concentration
#> - guide: mg/dL