CellCount {GeoRange} | R Documentation |
Calculates degree x degree cell counts of a specified size
Description
Calculates degree x degree cell counts of a specified size
Usage
CellCount(longs, lats, CellSize = 5, longBounds = c(-180, 180),
latBounds = c(-90, 90))
Arguments
longs |
- Array of longitudinal occurrence values in decimal degrees |
lats |
- Array of latitudinal occurrence values in decimal degrees |
CellSize |
- Size of each cell in degree X degree |
longBounds |
- Array of longitudinal boundaries in decimal degrees |
latBounds |
- Array of latitudinal boundaries in decimal degrees |
Value
Returns the number of cells occupied, specified cell size, and coordinate list
Note
This method uses grids cells constructed by equal degrees not area. So high latitude cells will have smaller areas than those at low latitude
Examples
longs<-c(22,55,-144)
lats<-c(-12,22,-12)
CellCount(longs,lats,CellSize=5,longBounds=c(-180,180),latBounds=c(-90,90))
[Package GeoRange version 0.1.0 Index]