calcLIFE: Calculate LIFE index

Description Usage Arguments Value Examples

View source: R/wrappers.r

Description

Calculates LIFE index values for invertebrate samples.

Usage

1
calcLIFE(df, type = "num")

Arguments

df

A dataframe containing list of taxa in first column, followed by columns of abundances with sample names in header row.

type

Indicates format of data. Options are "num" for numeric data, "log" for integer log abundance categories (1-5) or "alpha" for alphabetic abundance categories (A-E). Default value is "num".

Value

A data frame consisting of a column of index values with samples in rows.

Examples

1
2
3
4
# calculate the LIFE index for the River Almond dataset
# data are numeric abundances, so type can be omitted ("num" is default)

calcLIFE(almond)

biotic documentation built on May 29, 2017, 5:46 p.m.