writeMIF: Write a REMIND output (MIF) file.

View source: R/helpers.R

writeMIFR Documentation

Write a REMIND output (MIF) file.

Description

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).

Usage

writeMIF(dt, destination, append = FALSE, ...)

Arguments

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

Details

NAs are written to the file as "N/A".

Examples

## Not run: 
writeMIF(dt, "REMIND_generic_default.mif")

## End(Not run)

pik-piam/rmndt documentation built on April 21, 2024, 4:31 a.m.