spider (version 1.5.0)

dataStat: Taxa statistics

Description

Returns the numbers of species, genera and individuals in the dataset.

Usage

dataStat(sppVector, genVector, thresh = 5)

Arguments

sppVector

Species vector (see sppVector).

genVector

Genus vector that defines the genera of each individual, created in a similar manner to the species vector.

thresh

Threshold for adequate individual/species number. Default of 5.

Value

A table giving the number of genera and species in the dataset; giving the minimum, maximum, mean and median number of individuals per species, and the number of species below the given threshold.

Details

The value NULL can be passed to gen if genera are not of interest in the dataset.

Examples

Run this code
# NOT RUN {
data(anoteropsis)
#Species vector
anoSpp <- sapply(strsplit(dimnames(anoteropsis)[[1]], split="_"), 
    function(x) paste(x[1], x[2], sep="_"))
#Genus vector
anoGen <-  sapply(strsplit(anoSpp, split="_"), function(x) x[1])
dataStat(anoSpp, anoGen)

# }

Run the code above in your browser using DataLab