bdcomplete {bdvis} | R Documentation |
Computes completeness values of the dataset
Description
Computes completeness values for each cell. Currently returns Chao2 index of species richness.
Usage
bdcomplete(indf, recs = 50, gridscale = 1)
Arguments
indf |
input data frame containing biodiversity data set |
recs |
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. |
gridscale |
plot the map grids at specific degree scale. Default is 1. |
Details
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".
Value
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
See Also
Examples
## Not run:
bdcomplete(inat)
## End(Not run)