dataStat: Taxa statistics

Description Usage Arguments Details Value Author(s) Examples

Description

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

Usage

1
dataStat(sppVector, genVector, thresh)

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.

Details

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

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.

Author(s)

Rupert Collins <rupertcollins@gmail.com>

Examples

1
2
3
4
5
6
7
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)

spider documentation built on May 2, 2019, 5:16 p.m.