toolSubtypeSelect: Tool: SubtypeSelect

Description Usage Arguments Value Author(s) See Also Examples

View source: R/toolSubtypeSelect.R

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

1

Arguments

subtype

A chosen subtype (character)

files

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

Value

The file name corresponding to the given subtype

Author(s)

Jan Philipp Dietrich

See Also

readSource

Examples

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

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