prepFunctionName: prepFunctionName

Description Usage Arguments Value Author(s) See Also Examples

View source: R/prepFunctionName.R

Description

Function to prepare a function call for a given type and prefix

Usage

1
prepFunctionName(type, prefix = "calc", ignore = NULL, error_on_missing = TRUE)

Arguments

type

name of calculation/source

prefix

Type of calculations. Available options are "download" (source download), "read" (source read), "correct" (source corrections), "convert" (source conversion to ISO countries), "calc" (further calculations), and "full" (collections of calculations)

ignore

vector of arguments which should be ignored (not be part of the function call)

error_on_missing

boolean deciding whether a missing type should throw an error or return NULL

Value

A function call as character to the specified function with corresponding package as attribute

Author(s)

Jan Philipp Dietrich

See Also

readSource, setConfig

Examples

1
2
3
print(madrat:::prepFunctionName("Tau","read"))
print(madrat:::prepFunctionName("TauTotal","calc"))
print(madrat:::prepFunctionName("EXAMPLE","full"))

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