Learn R Programming

madrat (version 3.15.6)

toolSubtypeSelect: Tool: SubtypeSelect

Description

This function is a support function for the selection of a subtype in a readX function. In addition to the subtype selection it also performs some consistency checks.

Usage

toolSubtypeSelect(subtype, files)

Value

The file name corresponding to the given subtype

Arguments

subtype

A chosen subtype (character)

files

A named vector or list. The names of the vector correspond to the allowed subtypes and the content of the vector are the corresponding file names.

Author

Jan Philipp Dietrich

See Also

readSource

Examples

Run this code

files <-  c(protection="protection.csv",
              production="production.csv",
              extent="forest_extent.csv")
toolSubtypeSelect("extent",files)

Run the code above in your browser using DataLab