Package: BCGcalc
Type: Package
Title: Biological Condition Gradient, Calculator
Version: 2.3.1
Authors@R: c(
  person("Erik W.", "Leppo", email="Erik.Leppo@tetratech.com", role=c("aut","cre")), 
  person("Jen", "Stamp", email="Jen.Stamp@tetratech.com", role="ctb"),
  person("Matt", "Hedin", email="Matt.Hedin@tetratech.com", role="ctb"),
  person("Ben", "Block", email="Ben.Block@tetratech.com", role="ctb"))
Maintainer: Erik W. Leppo <Erik.Leppo@tetratech.com>
Description: Functions to calculate Biological Condition Gradient (BCG) using 
  input files with one row per sample with metric values and site classes as 
  columns.  A second file with the BCG Rules (example included) to define the 
  memberships is also needed.  The three main functions convert metric scores to
  metric memberships following fuzzy set BCG Rules (BCG.Level.Assignment), 
  combine metric memberships to level memberships according to BCG Rules 
  (BCG.Level.Membership), and then assign a BCG primary and secondary level 
  based on level memberships (BCG.Level.Assignment).  Originally developed as a 
  package for use with BCG for Puget Lowland/Willamette Valley but has been 
  further enhanced for use with multiple communities (benthic 
  macroinvertebrates, fish, periphyton, or coral) and different rule sets. 
  Oregon and Washington reference - 
  "Stamp, J. and J. Gerritsen. 2018. Calibration of the Biological Condition 
  Gradient (BCG) for Macroinvertebrate Assemblages in Puget Lowland/Willamette 
  Valley Freshwater Wadeable Streams. Prepared by Tetra Tech for the US EPA 
  Office of Water, Office of Science and Technology and US EPA Region 10."
  BCG process documentation - 
  "USEPA. 2016. A Practitioner’s Guide to the Biological Condition Gradient - A 
  Framework to Describe Incremental Change in Aquatic Ecosystems. 
  EPA 842-R-16-001. Office of Science and Technology, Washington, DC 20460." 
License: MIT + file LICENSE
Depends: R (>= 3.5.0)
Imports: dplyr, reshape2
Suggests: BioMonTools, readxl, knitr, rmarkdown, ggplot2, shiny, DT,
        httr, testthat (>= 3.0.0), plyr, tidyr, tibble, rioja,
        nhdplusTools, ComplexUpset
Encoding: UTF-8
LazyData: true
URL: https://github.com/leppott/BCGcalc
BugReports: https://github.com/leppott/BCGcalc/issues
VignetteBuilder: knitr
Config/testthat/edition: 3
Config/roxygen2/version: 8.0.0
NeedsCompilation: no
Packaged: 2026-07-31 15:18:06 UTC; Erik.Leppo
Author: Erik W. Leppo [aut, cre],
  Jen Stamp [ctb],
  Matt Hedin [ctb],
  Ben Block [ctb]
Repository: CRAN
Date/Publication: 2026-08-08 10:30:02 UTC
Built: R 4.6.1; ; 2026-09-02 04:18:38 UTC; windows
