Download Package `RSAGA`
Transcript
match.arg.ext
11
header
optional list giving grid header information; see read.ascii.grid for details
varname
character: name to
colnames
names to be given to the columns corresponding to the x and y coordinates and
the grid variable in the output data.frame
Value
a data.frame with three columns (names are specified in the colnames argument) giving the x and
y coordinates and the attribute values at the locations given by the grid data
Author(s)
Alexander Brenning
See Also
read.ascii.grid, pick.from.ascii.grid
Examples
## Not run:
d = read.ascii.grid("dem")
xyz = grid.to.xyz(d,varname="elevation")
str(xyz)
## End(Not run)
match.arg.ext
Extended Argument Matching
Description
match.arg.ext matches arg against a set of candidate values as specified by choices; it
extends match.arg by allowing arg to be a numeric identifier of the choices.
Usage
match.arg.ext(arg, choices, base = 1, several.ok = FALSE,
numeric = FALSE, ignore.case = FALSE)