prepFunctionName {madrat} | R Documentation |
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)
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
Examples
print(madrat:::prepFunctionName("Tau","read"))
print(madrat:::prepFunctionName("TauTotal","calc"))
print(madrat:::prepFunctionName("EXAMPLE","full"))
[Package madrat version 3.6.4 Index]