R/biodiversityFunctions.R
communityMatrix.Rd
A function that counts the number of observations or visits per grid cell for each species.
communityMatrix(x, sampleUnit = "observation")
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. |
a matrix
with counts of observations or visits for each species
on each non-empty grid cell.
# \donttest{ grid <- makeGrid(searchPolygon, gridSize = 10) SB <- summarizeBirds(organizeBirds(bombusObsShort), grid=grid) CM <- communityMatrix(SB, sampleUnit="visit") # }