Learn R Programming

labdsv (version 1.8-0)

dropspc: Dropping Species with Few Occurrences

Description

Eliminates species from the taxon data frame that occur fewer than or equal to a threshold number of occurrences.

Usage

dropspc(taxa,minocc=0,minabu=0)

Arguments

taxa

a taxon data frame

minocc

the threshold number of occurrences to be dropped

minabu

the threshold minimum abundance to be dropped

Value

produces a new taxon data frame

Details

The function is useful for eliminating species (columns) from taxon data frames which never occur, which often happens if you eliminate plots, and those plots are the only ones that contain that species. In addition, many species are rare in data frames, and some algorithms (especially dissimilarity functions and table sorting routines) benefit from smaller simpler data frames.

Examples

Run this code
# NOT RUN {
    data(bryceveg) # returns a data frame called bryceveg
    newveg <- dropspc(bryceveg,5) # deletes species which occur 5 or fewer times
# }

Run the code above in your browser using DataLab