R package materials to calculate the Algal Stream Condition Index (ASCI) based on O/E and pMMI scores using diatom, soft-bodied algae, or a hybrid appproach.
Install the package as follows:
install.packages('devtools') library(devtools) install_github('SCCWRP/ASCI') library(ASCI)
The sample files demo_algae_tax
and demo_station
are included to demonstrate the correct formats for the input data. The demo_algae_tax
file is a data.frame
of taxonomic data in long format (one row per sample). The demo_station
file is a data.frame
of GIS predictors in wide format, one row per station. See the help files for more information (e.g., ?demo_algae_tax
). Also see the help file for chkinp()
and calcgis()
for requirements of each file to work with the ASCI.
devtools::load_all()
head(demo_algae_tax) head(demo_station)
The output is in a wide format.
demo_results <- ASCI(demo_algae_tax, demo_station) demo_results
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.