getGridIDs: Create unique IDs based on a grid

Description Usage Arguments Value

View source: R/organizeBirds.R

Description

Takes a spatial points data.frame and a grid and gets the overlay IDs.

Usage

1
getGridIDs(x, grid, idcol = "id")

Arguments

x

a SpatialPointsDataFrame ('sp') or sf ('sf') (with the observations).

grid

a SpatialPolygon object ('sp') or sf ('sf') (a grid is expected) defining the maximum extent of visits effort.

idcol

column name for the grid names or ids

Value

A vector of the same length as the number of rows (observations) as x with a unique number corresponding to the grid's ID.


BIRDS documentation built on June 27, 2021, 1:06 a.m.