A function that counts the number of observations or visits per grid cell for each species.

communityMatrix(x, sampleUnit = "observation")

Arguments

x

an object of class ‘SummarizeBirds’.

sampleUnit

an string specifying the sample unit within a grid cell. Options are “observation” (default) or “visit”. If spillOver=TRUE and visits are defined by locality, it may happen that some species observations are counted in more than one grid cell.

Value

a matrix with counts of observations or visits for each species on each non-empty grid cell.

See also

Examples

# \donttest{ grid <- makeGrid(searchPolygon, gridSize = 10) SB <- summarizeBirds(organizeBirds(bombusObsShort), grid=grid) CM <- communityMatrix(SB, sampleUnit="visit") # }