Learn R Programming

GeoRange (version 0.1.0)

CellCount: 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

Examples

Run this code
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