readSource: readSource

Description Usage Arguments Value Author(s) See Also Examples

View source: R/readSource.R

Description

Read in a source file and convert it to a MAgPIE object. The function is a wrapper for specific functions designed for the different possible source types.

Usage

1
readSource(type, subtype = NULL, convert = TRUE)

Arguments

type

source type, e.g. "IEA". A list of all available source types can be retrieved with function getSources.

subtype

For some sources there are subtypes of the source, for these source the subtype can be specified with this argument. If a source does not have subtypes, subtypes should not be set.

convert

Boolean indicating whether input data conversion should be done or not. In addition it can be set to "onlycorrect" for sources with a separate correctXXX-function.

Value

magpie object with the temporal and data dimensionality of the source data. Spatial will either agree with the source data or will be on ISO code country level depending on your choice for the argument "convert".

Author(s)

Jan Philipp Dietrich, Anastasis Giannousakis, Lavinia Baumstark

See Also

setConfig, ' downloadSource, readTau

Examples

1
2
3
4
## Not run:  
a <- readSource("Tau","paper")

## End(Not run)

madrat documentation built on Dec. 25, 2019, 9:07 a.m.