Learn R Programming

biotic (version 0.1.2)

calcAWIC: Calculate AWIC index

Description

Calculates AWIC index for invertebrate samples.

Usage

calcAWIC(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

Run this code

# calculate the AWIC index for the Green Burn dataset
# data are numeric log abundance categories, so type is "log"

calcAWIC(greenburn, "log")

Run the code above in your browser using DataLab