communityMatrix: Create a community matrix (grid cells x species)

Description Usage Arguments Value See Also Examples

View source: R/biodiversityFunctions.R

Description

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

Usage

1
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

summarizeBirds, exportBirds

Examples

1
2
3
grid <- makeGrid(searchPolygon, gridSize = 10)
SB <- summarizeBirds(organizeBirds(bombusObsShort), grid=grid)
CM <- communityMatrix(SB, sampleUnit="visit")

BIRDS documentation built on June 27, 2021, 1:06 a.m.