getCellCounts: getCellCounts function
Description
This function is used to count the number of observations
falling inside grid cells.Usage
getCellCounts(x, y, xgrid, ygrid)
Arguments
xgrid
x-coordinates of grid centroids
ygrid
y-coordinates of grid centroids
Value
- The number of observations in each grid cell.