dataStat {spider}R Documentation

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.

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


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)


[Package spider version 1.5.0 Index]