bdvis (version 0.2.9)

bdcomplete: 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)

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.

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

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".

See Also

getcellid

Examples

Run this code
## Not run: 
# bdcomplete(inat)
# ## End(Not run)

Run the code above in your browser using DataCamp Workspace