DO.Screening: Function to screen dissolved oxygen data within the...

View source: R/DO.Screening.R

DO.ScreeningR Documentation

Function to screen dissolved oxygen data within the Everglades Ecosystem prior to evaluating compliance with established water quality standards.

Description

Function to screen dissolved oxygen data within the Everglades Ecosystem prior to evaluating compliance with established water quality standards.

Usage

DO.Screening(
  DateTime,
  DO,
  Temp,
  data,
  hour.lims = c(6, 18),
  max.DO = 20,
  temp.lims = c(5, 20)
)

Arguments

DateTime

as.POSIXct date and time

DO

Dissolved Oxygen Concentration

Temp

Surface water temperature

data

data.frame() with DateTime (DateTime.EST), Dissolved Oxygen (concentration; DO) and Temperature (Temp) data.

hour.lims

min and max hour to capture "day-time" DO

max.DO

Limit to the maximum observed DO for the system

temp.lims

limits to water temperature data that seem reasonable based on period of record.

...

specify other parameters as needed (min.hour,max.hour,max.DO,min.Temp,max.Temp)

Value

DO.Screening() assumes the data has a "DateTime.EST" field (date and time stamp), "DO" Field and "Temp" field to determine suitable data. Returns a "UseData" response.

Examples

## Not run: 
# data=data.frame(DateTime.EST=as.POSIXct(c("2015-05-01 08:00","2015-10-15 12:00","2015-10-15 5:00")),DO=c(15,2,3),Temp=c(18,27,3))
# data$UseData=DO.Screening(DateTime.EST,DO,Temp,data)
# data

## End(Not run)

SwampThingPaul/AnalystHelper documentation built on Nov. 3, 2024, 10:02 a.m.