Learn R Programming

amadeus (version 1.2.3)

process_gmted_codes: Process elevation statistic and resolution codes

Description

Identify the GMTED statistic and resolution based on the file path. Convert statistic and resolution to/from full string to/from statistic and resolution code.

Usage

process_gmted_codes(
  string,
  statistic = FALSE,
  resolution = FALSE,
  invert = FALSE
)

Value

character

Arguments

string

character(1). File path to GMTED data file.

statistic

logical(1). Matches statistic to statistic code.

resolution

logical(1). Matches resolution to resolution code.

invert

logical(1). Default = FALSE. invert = TRUE assumes string provides statistic or resolution code, and returns full length statistic or resolution.