calc_EQR | R Documentation |
Calculate EQRs and WFD status classes from diatom metric and sample environmental data
calc_EQR(x, header, truncate_EQR = TRUE, verbose = TRUE)
x |
an object of class |
header |
data frame containing sample and site environmental information for calculating the expected value of the metric. |
truncate_EQR |
logical to truncate EQRs at 1.0 |
verbose |
logical to indicate should function stop immediately on error (TRUE) or return a |
A object of class DIATOM_EQR
, a list with the following named elements:
EQR |
data frame containing, for each sample, sample codes, water chemistry data and other columns from the header in original Excel file, metric and summary information from function |
Uncertainty |
data frame containing, for each site, mean EQRS, predicted WFD class, and confidence of class (CoC) for each WFD class and HG/MPB boundary (CoCCHG, COCMPB), and risk of misclassification for the predicted class (ROM) and for the G/M boundary (ROM_GM) |
.
Steve Juggins Stephen.Juggins@ncl.ac.uk
Kelly, M., S. Juggins, R. Guthrie, S. Pritchard, J. Jamieson, B. Rippey, H. Hirst, and M. Yallop, Assessment of ecological status in UK rivers using diatoms. Freshwater Biology, 2008. 403-422.
Juggins, S., M. Kelly, T. Allott, M. Kelly-Quinn, and D. Monteith, A Water Framework Directive-compatible metric for assessing acidification in UK and Irish rivers using diatoms. Science of The Total Environment, 2016. 671-678.
Bennion, H., M.G. Kelly, S. Juggins, M.L. Yallop, A. Burgess, J. Jamieson, and J. Krokowski, Assessment of ecological status in UK lakes using benthic diatoms. Freshwater Science, 2014. 639-654.
fn <- system.file("extdata/DARLEQ2TestData.xlsx", package="darleq3")
d <- read_DARLEQ(fn, "Rivers TDI Test Data")
x <- calc_Metric(d$diatom_data, metric="TDI4")
eqr <- calc_EQR(x, d$header)
head(eqr$EQR)
head(eqr$Uncertainty)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.