ASCI: Score samples using the ASCI tool

View source: R/ASCI.R

ASCIR Documentation

Score samples using the ASCI tool

Description

Score samples using the ASCI tool

Usage

ASCI(taxa, stations)

Arguments

taxa

data.frame for input taxonomy data

stations

data.frame for input station data

Details

One index for three taxonomy types are scored, MMI for diatoms, soft-bodied algae, and hybrid. If only soft-bodied algae or diatoms are present, only the respective ASCI and metrics are returned.

Value

A dataframe with all metrics calculated for each provided taxa

Examples

# calculate all
ASCI(demo_algae_tax, demo_station)

# works if either soft-bodied or diatoms are missing
# remove diatoms from station sample 909M24937
tmp <- subset(demo_algae_tax, !(StationCode == '909M24937' & SampleTypeCode == 'Integrated'))
ASCI(tmp, demo_station)

# works if either soft-bodied or diatoms are missing
# remove soft-bodied from station sample 801M16916
tmp <- subset(demo_algae_tax, !(StationCode == '801M16916' & SampleTypeCode != 'Integrated'))
ASCI(tmp, demo_station)

fawda123/ASCI documentation built on April 12, 2024, 4:16 a.m.