powered by
Calculates degree x degree cell counts of a specified size
CellCount(longs, lats, CellSize = 5, longBounds = c(-180, 180), latBounds = c(-90, 90))
- Array of longitudinal occurrence values in decimal degrees
- Array of latitudinal occurrence values in decimal degrees
- Size of each cell in degree X degree
- Array of longitudinal boundaries in decimal degrees
- Array of latitudinal boundaries in decimal degrees
Returns the number of cells occupied, specified cell size, and coordinate list
longs<-c(22,55,-144) lats<-c(-12,22,-12) CellCount(longs,lats,CellSize=5,longBounds=c(-180,180),latBounds=c(-90,90))
Run the code above in your browser using DataLab