toolConvertMapping: Tool: ConvertMapping

Description Usage Arguments Value Author(s) See Also Examples

View source: R/toolConvertMapping.R

Description

Function which converts mapping files between formats

Usage

1
toolConvertMapping(name, format = "rda", type = NULL, where = "mappingfolder")

Arguments

name

File name of the mapping file. Supported file types are currently csv (, or ; separated) and rda (which needs to have the data stored with the object name "data"!). Use codetoolConvertMapping to convert between both formats

format

format it should be converted to. Available is "csv" or "rda".

type

Mapping type (e.g. "regional", "cell", or "sectoral"). Can be set to NULL if file is not stored in a type specific subfolder

where

location to look for the mapping, either "mappingfolder" or the name of a package which contains the mapping

Value

the mapping as a data frame

Author(s)

Jan Philipp Dietrich

See Also

calcOutput, toolConvertMapping

Examples

1
head(toolGetMapping("regionmappingH12.csv", where="madrat"))

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