getSources: getSources

Description Usage Arguments Value Note Author(s) See Also Examples

View source: R/getSources.R

Description

These functions 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

1
2
3
4
5
getSources(
  type = NULL,
  packages = getConfig("packages"),
  globalenv = getConfig("globalenv")
)

Arguments

type

Type of source, either set to "global" "regional", "download", "correct" or NULL. Global returns all global sources (non-regional), regional returns sources with regional data, "download" returns source for which a download function is available, "correct" returns sources for which a correct function is available and NULL returns all available sources

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

Value

A vector containing all currently available sources or outputs of all loaded data processing packages.

Note

Please be aware that these functions assume that required source files do exist and are set correctly in the corresponding config file.

Author(s)

Jan Philipp Dietrich

See Also

readSource, setConfig

Examples

1

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