Learn R Programming

magclass (version 4.39)

write.reportProject: Write file in specific project format

Description

Reads in a reporting.mif or uses a magpie object based on a read in reporting.mif, substitutes names of variables according to the mappping, mutliplies by an optional factor in the 3rd column of the mapping, and saves the output in a new *.mif

Usage

write.reportProject(mif, mapping, file = NULL)

Arguments

mif

Lists with magpie-objects or a magpie-object as created by read.report or a path to a report.mif

mapping

mapping of the varialbe names of the read in mif. the header is used for naming.

file

name of the project specipic report, default=NULL means that the names of the header of the reporting is used

See Also

write.report

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
write.reportProject("REMIND_generic_test.mif","Mapping_generic_ADVANCE.csv")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab