CellCount: Calculates degree x degree cell counts of a specified size

Description Usage Arguments Value Note Examples

View source: R/CellCount.R

Description

Calculates degree x degree cell counts of a specified size

Usage

1
2
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

1
2
3
longs<-c(22,55,-144)
lats<-c(-12,22,-12)
CellCount(longs,lats,CellSize=5,longBounds=c(-180,180),latBounds=c(-90,90))

GeoRange documentation built on June 20, 2017, 9:03 a.m.

Related to CellCount in GeoRange...