Usage
read.TOXSWA_cwa(filename, basedir = ".", zipfile = NULL, segment = "last", windows = NULL, thresholds = NULL)
Arguments
- filename
- The filename of the cwa file.
- basedir
- The path to the directory where the cwa file resides.
- zipfile
- Optional path to a zip file containing the cwa file.
- segment
- The segment for which the data should be read. Either "last", or
the segment number.
- windows
- Numeric vector of width of moving windows in days, for calculating
maximum time weighted average concentrations and areas under the curve.
- thresholds
- Numeric vector of threshold concentrations in µg/L for
generating event statistics.
Value
An instance of an R6 object of class
TOXSWA_cwa
.
Description
Read TOXSWA hourly concentrations of a chemical substance in a specific
segment of a TOXSWA surface water body. Per default, the data for the last
segment are imported.
Examples
H_sw_D4_pond <- read.TOXSWA_cwa("00001p_pa.cwa",
basedir = "SwashProjects/project_H_sw/TOXSWA",
zipfile = system.file("testdata/SwashProjects.zip",
package = "pfm"))