Learn R Programming

madrat (version 3.15.6)

getCalculations: getCalculations

Description

This function can be used to retrieve a list of currently available sources and outputs (based on the availability of corresponding conversion functions in the loaded data data processing packages.)

Usage

getCalculations(
  prefix = "calc",
  packages = getConfig("packages"),
  globalenv = getConfig("globalenv")
)

Value

A data frame containing all currently available outputs of all loaded data processing packages including its name, its function call and its package origin.

Arguments

prefix

Type of calculations, vector of types or search term (e.g. "read|calc"). 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)

packages

A character vector with packages for which the available Sources/Calculations should be returned

globalenv

Boolean deciding whether sources/calculations in the global environment should be included or not

Author

Jan Philipp Dietrich

See Also

readSource, setConfig

Examples

Run this code

print(getCalculations())
print(getCalculations("read"))

Run the code above in your browser using DataLab