Learn R Programming

benthos (version 1.3-8)

abundance: Abundance

Description

The number of indiviuals in each taxon.

Usage

abundance(.data = NULL, taxon = NULL, count)

abundance_(.data = NULL, taxon = NULL, count)

Value

numeric vector with abundance per taxon.

Arguments

.data

data in a data.frame, tibble, data.table, database etc.

taxon

name of column in .data containing taxa

count

name of column in .data containing counts

Functions

  • abundance_(): version suitable for calling from a function (see package lazyeval).

Examples

Run this code
 abundance(
     taxon = c("Euspira pulchella", "Nephtys cirrosa"), 
     count = c(4, 6)
 )

Run the code above in your browser using DataLab