Computes completeness values for each cell. Currently returns Chao2 index of species richness.
bdcomplete(indf, recs = 50, gridscale = 1)
data.frame with the columns
"Cell_id" - id of the cell
"nrec" - Number of records in the cell
"Sobs" - Number of Observed species
"Sest" - Estimated number of species
"c" - Completeness ratio the cell
Plots a graph of Number of species vs completeness
input data frame containing biodiversity data set
minimum number of records per grid cell required to make the calculations. Default is 50. If there are too few records, the function throws an error.
plot the map grids at specific degree scale. Default is 1.
After dividing the extent of the dataset in cells (via the
getcellid
function), the function calculates the Chao2 estimator
of species richness. Given the nature of the calculations, a minimum number of
records must be present on each cell to properly compute the index. If there
are too few records in the cells, the function is unable to finish, and it
throws an error.
This function produces a plot of number of species versus completeness index to
give an idea of output. The data frame returned can be used to visualize the
completeness of the data using mapgrid
function with ptype as
"complete".
getcellid
if (FALSE) {
bdcomplete(inat)
}
Run the code above in your browser using DataLab