addMapping: addMapping

Description Usage Arguments Value Author(s) See Also Examples

View source: R/addMapping.R

Description

Function to add a new mapping between a function of the magpie library and a dataset in the validation library.

Usage

1
addMapping(func,...,dataset,ignore.args=NULL,choose.args=NULL,internal=FALSE,svn_path=NULL)

Arguments

func

Name of the magpie library function that this data belongs to.

...

Values for arguments that func takes. If an argument is not specified the default value are used if existing. Otherwise an error will occur.

dataset

A string specifying the name of the dataset to which func(...) should be mapped.

ignore.args

A vector of strings, specifying arguments of func for which it does not matter what value they have.

choose.args

A vector of strings. A call of func with a certain value of these arguments requires to return argument specific data from the database (e.g. crops in production).

internal

Boolean. By default (FALSE) the library is checked out, updated and committed. If TRUE, only the valdata object in the workspace is modified.

svn_path

Path of the svn repository. If NULL, standard paths will be tested.

Value

No value is returned. Instead the new mapping is saved in the mapping object of the library and the library is updated and committed.

Author(s)

Markus Bonsch

See Also

validationPlot,getData,addData

Examples

1
## Not run: addMapping(func=land,gdx="fulldata.gdx",type="crop",dataset="cropland_physical")

pik-piam/validation documentation built on Nov. 5, 2019, 12:50 a.m.