toolMappingFile: Tool: MappingFile

Description Usage Arguments Value Author(s) See Also Examples

View source: R/toolMappingFile.R

Description

Functions which calculates the path to a mapping file

Usage

1
2
3
4
5
6
7
toolMappingFile(
  type,
  name,
  readcsv = FALSE,
  error.missing = TRUE,
  where = "mappingfolder"
)

Arguments

type

Mapping type ("regional", or "sectoral")

name

File name of the mapping file.

readcsv

if true, file read in

error.missing

Boolean which decides whether an error is returned if the mapping file does not exist or not.

where

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

Value

The complete path to the mapping file.

Author(s)

Jan Philipp Dietrich

See Also

calcOutput

Examples

1
## Not run: toolMappingFile("sectoral","structuremappingFE.csv")

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