Description Usage Arguments Value
View source: R/point_in_cell.R
This function examines which points fall within a raster cell with data (not NA). Returns TRUE for points falling in a raster cell with data, and FALSE otherwise.
1 | point_in_cell(locs, ras, layer = 1)
|
locs |
A matrix, dataframe, SpatialPoints or SpatialPointsDataFrame containing coordinates of species occurrences. If locs is a matrix or dataframe, it will be converted to a spatial object using |
ras |
Raster* object |
layer |
Integer. For RasterStack and RasterBrick objects, which layer to use to compare with point locations (default = 1). |
A logical vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.