extract.data extracts data from raster object of
class 'asc' (this and the adehabitat package),
'RasterLayer' (raster package) or 'SpatialGridDataFrame'
(sp package) at specified locations. This represents a
faster version of 'join.asc' of the adehabitat package that
assumes all locations are within the map extents.
Note: there is no interpolation done here. The values reported are simply the values of the raster cell the point falls into.
## S3 method for class 'data' extract(pts, x)
a two-column data frame or matrix with the x and y coordinates of the locations of interest.
a raster matrix of class 'asc' (this and the adehabitat package), 'RasterLayer' (raster package) or 'SpatialGridDataFrame' (sp package)
Implements a faster version of 'join.asc' from the
NOTE: this assumes all locations are within the extent of the raster map. Values outside the extent will be given a value of NA.
Returns a vector equal in length to the number of locations in pnts.
Jeremy VanDerWal firstname.lastname@example.org
1 2 3 4 5 6 7 8 9 10 11
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.