darleq | R Documentation |
Calculate diatom water quality metrics, EQRs and WFD class for samples, and uncertainties of site classification
darleq(
inFile,
sheet = NULL,
metrics = c("TDI3", "TDI4", "TDI5LM"),
outFile = NULL,
verbose = TRUE
)
inFile |
Excel file name containing diatom and sample environmental data. See |
sheet |
name of the worksheet in the Excel file to import. |
metrics |
character vector of metric codes. Currently one or more of the following: "TDI3", "TDI4", "TDI5LM" (for river LM TDI calculations), "TDI5NGS" for river NGS metric, "LTDI1", "LTDI2" for lake LM TDI metrics or "DAMLM" for river diatom acidification metric. |
outFile |
name of Excel file to save results. If not given the function will generate a name by concatenating "DARLEQ3_Results_" with the original filename, the sheet name and the current date. |
verbose |
logical to indicate should function stop immediately on error (TRUE) or return a |
This is a wrapper function to read_DARLEQ
calc_Metric_EQR
and save_DARLEQ
that imports data form an Excel file, calculates multiple metrics, EQRs and WFD classes and saves the results to another Excel file in one step.
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")
darleq(fn, outFile="Results.xlsx")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.