Learn R Programming

madrat (version 3.15.6)

prepFunctionName: prepFunctionName

Description

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

Usage

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

Value

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

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

Author

Jan Philipp Dietrich

See Also

readSource, setConfig

Examples

Run this code

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

Run the code above in your browser using DataLab