getGridIDs: Create unique IDs based on a grid

View source: R/organizeBirds.R

getGridIDsR Documentation

Create unique IDs based on a grid

Description

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

Usage

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

Arguments

x

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

grid

a sf ('sf') or a SpatialPolygon object ('sp') (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.


Greensway/BIRDS documentation built on Oct. 19, 2023, 2:35 a.m.