-
Notifications
You must be signed in to change notification settings - Fork 2
/
README.Rmd
46 lines (31 loc) · 1.58 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
output: github_document
---
## ASCI
#### *Marcus W. Beck (maintainer), [email protected], Susanna Theroux, [email protected], Quynh-Thi Ho, [email protected], John Van Sickle*
[![Travis-CI Build Status](https://travis-ci.org/SCCWRP/ASCI.svg?branch=master)](https://travis-ci.org/SCCWRP/ASCI)
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/SCCWRP/ASCI?branch=master&svg=true)](https://ci.appveyor.com/project/SCCWRP/ASCI)
[![DOI](https://zenodo.org/badge/106055957.svg)](https://zenodo.org/badge/latestdoi/106055957)
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.
### Installation
Install the package as follows:
```{r, eval = FALSE}
install.packages('devtools')
library(devtools)
install_github('SCCWRP/ASCI')
library(ASCI)
```
### Usage
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.
```{r, message = F, warning = F, echo = F}
devtools::load_all()
```
```{r}
head(demo_algae_tax)
head(demo_station)
```
The output is in a wide format.
```{r}
demo_results <- ASCI(demo_algae_tax, demo_station)
demo_results
```