getData: getData

Description Usage Arguments Value Author(s) See Also Examples

View source: R/getData.R

Description

Function to extract validation data for a specific magpie output from the library.

Usage

1
getData(func,...,historical=NULL,datasources=NULL)

Arguments

func

Name of the magpie library function for which validation data shall be obtained.

...

Values for arguments that func takes. The 'gdx' argument does not have to be supplied. If an argument is not specified the default value are used if existing. Otherwise an error will occur. The two arguments "file" and "level" can be omitted without causing problems.

historical

Determines what kind of data is returned. Either historical data (TRUE), projections (FALSE) or both (NULL).

datasources

A vector containing the names of the datasets that shall be returned. If NULL (default) all datasets are returned.

Value

A list of magpie objects. The substructure is out$collection$data$historical/projection$datasource. Additionally, units are provided under out$collection$unit.

Author(s)

Markus Bonsch

See Also

validationPlot,show_aggrTypes,addData,addMapping

Examples

1
2
3
4
5
## Not run: 
getData(func=emissions,type="co2_c",datasources="FAO",historical=TRUE)
getData(func=emissions,type="co2_c",y1995=TRUE,datasources="FAO",historical=TRUE)

## End(Not run)

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