Preprocessing

Prepare the R Environment

Load the necessary R packages into the global environment.

library(readxl)

Upload and Prepare CALM Logic Files.

These files should be finalized and added to the the Assessment database.

Establish the file path to the Excel workbook created by Keleigh Reynolds and Sarah Rickard to tabularize NYSDEC's water quality standards.

calm_logic.path <- file.path(
  "C:",
  "Users",
  "zmsmith.000",
  "New York State Office of Information Technology Services",
  "BWAM - Automation of Assessment",
  "Logic_CALM_Automation_v4.xlsx"
)

This sheet contains a summary of the aquatic (acute) type of water quality standards.

aquatic_acute <- read_xlsx(calm_logic.path,
                           sheet = "aquatic_acute")

Export

With the usethis package, the aquatic acute data is exported as a .rda file making it easily accessible within documentation of the stayCALM package.

usethis::use_data(aquatic_acute, overwrite = TRUE)


BWAM/stayCALM documentation built on May 21, 2020, 3:24 p.m.