Learn R Programming

BIRDS (version 0.2.0)

communityMatrixGrid: Creates a community matrix per grid cell (sample x species x grid cell)

Description

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

Usage

communityMatrixGrid(x)

Arguments

x

an object of class ‘SummarizeBirds’.

Value

a list with a data.frame per grid cell with counts of observations for each species per visits on each non-empty grid cell.

See Also

communityMatrix

Examples

Run this code
# NOT RUN {
grid <- makeGrid(searchPolygon, gridSize = 10)
OB <- organizeBirds(bombusObs, sppCol = "scientificName",
                    taxonRankCol = "taxonRank", taxonRank = "SPECIES",
                    simplifySppName = TRUE)
SB <- summarizeBirds(OB, grid=grid)
CM <- communityMatrixGrid(SB)
lCM <- lengths(CM) ## Which cells are empty
## library(vegan)
## R <- lapply(CM[which(lCM>0)], specaccum)
# }

Run the code above in your browser using DataLab