sumstat: Occurrence database summary

Description Usage Arguments Details Examples

View source: R/sampstat.R

Description

The function calculates global statistics of the entire database

Usage

1
2
sumstat(x, tax = "genus", bin = "stg", coll = NULL, ref = NULL,
  duplicates = NULL)

Arguments

x

(data.frame): The occurrence dataset.

tax

(character): The column name of taxon names.

bin

(character): The column name of bin names.

coll

(character): The column name of collection numbers. (optional)

ref

(character): The column name of reference numbers. (optional)

duplicates

(logical): The function will check whether there are duplicate occurrences (multiple species/genera). When set to NULL, nothing will happen, but the function will notify you if duplicates are present. If set to TRUE, the function will not do anything with these, if set to FALSE, the duplicates will be omitted.

Details

The function returns the following values.

bins: The total number of bins sampled.

occs: The total number of sampled occurrences.

colls: The total number of sampled collections.

refs: The total number of sampled references.

taxa: The total number of sampled taxa.

gappiness: The proportion of sampling gaps in the ranges of the taxa (without the range-endpoints).

Examples

1
2
data(corals)
  sumstat(corals, tax="genus", bin="stg", coll="collection_no", ref="reference_no")

divDyn/r_package documentation built on July 9, 2019, 2:43 a.m.