5 Methods

5.1 stayCALM Package Installation

You can install the development version from GitHub with:

You must have rtools installed on your machine for the stayCALM to be built upon installation from GitHub. rtools is NOT an R package. On Windows machines, rtools can be installed from the following CRAN repository: https://cran.r-project.org/bin/windows/Rtools/.

5.2 Prepare the R Environment

Load the necessary R packages into the global environment, including the stayCALM package.

5.3 Preprocess Data

5.3.1 Water Quality Standards

Data was preprocessed to resemble the expected output from the athorotative databases that will become available as part of the Data Modernization effort Data Modernization.

  • fresh - fresh surface waters
    • D > C > B > A > A-Special > AA > AA-Special
    • D > C > C(T) > C(TS) > B > B(T) > B(TS) > A > A(T) > A(TS) > A-Special > A-Special(T) > A-Special(TS) > AA > AA(T) > AA(TS) > AA-Special > AA-Special(T) > AA-Special(TS)
  • saline - saline surface waters
    • SD > I > SC > SB > SA

5.3.2 WI/PWL

Data was preprocessed to resemble the expected output from the athorotative databases that will become available as part of the Data Modernization effort Data Modernization.

5.4 Assess

Thresholds represented by NA will throw an error. The majority of the NAs in the threshold column now need to be calculated– a task I have not standardized yet.