writeMIF | R Documentation |
Note that these files are semi-colon separated CSVs with a trailing semi-colon at the end of each entry. Required columns are "Model", "Scenario", "Region", "Variable", "Unit" and an arbitrary number of year colums (should be convertable to numeric).
writeMIF(dt, destination, append = FALSE, ...)
dt |
a data.table in the correct format. |
destination |
path to the resulting MIF file |
append |
append to an existing MIF file? |
... |
other parameters are passed on to data.table::fwrite |
NAs are written to the file as "N/A".
## Not run:
writeMIF(dt, "REMIND_generic_default.mif")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.