Learn R Programming

bdvis (version 0.2.37)

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, gridscale = 1)

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

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

See Also

getcellid

Examples

Run this code
if (FALSE) {
bdcomplete(inat)
}

Run the code above in your browser using DataLab