RDocumentation
Moon
Learn R
Search all packages and functions
dismo (version 0.5-11)
pointValues: point values
Description
Extract values from a Raster* object for point locations.
Usage
pointValues(x, p, a, uniquecells = TRUE, na.rm = TRUE)
Arguments
x
A Raster* object
p
Points. Two-colum matrix or data.frame; or a SpatialPoints* object
a
Additional points (absences). Two-colum matrix or data.frame; or a SpatialPoints* object
uniquecells
Logical. If
TRUE
, each cell can be included only once (i.e. 'duplicate' points are removed)
na.rm
Logical. If
TRUE
, cell values of NA are not returned
Value
matrix