A wrapper around readr::write_lines for writing files conforming to the
.mif standard.
Usage
write.mif(
x,
path,
comment_header = NULL,
comment = "#",
append = FALSE,
sep = ";",
na = "NA"
)
write.IAMCcsv(
x,
path,
comment_header = NULL,
comment = "#",
append = FALSE,
sep = ",",
na = ""
)Arguments
- x
A
quittedata frame.- path
Path or connection to write to.
- comment_header
Comment header to be written to the
.miffile. Ignored ifappendisTRUE.- comment
A character to prefix comment header lines with. Must match existing comment characters in file
pathifappendisTRUE.- append
Overwrite existing files (
FALSE, default), or append to them (TRUE).- sep
Single character used to separate fields within a record. Defaults to
;.- na
String used for
NAelements. Defaults to'NA'forwrite.mif()and to''forwrite.IAMCcsv().
Examples
write.mif(quitte_example_data, tempfile())