blankTime: Deletes the computed values during periods of time when there...

View source: R/blankTime.R

blankTimeR Documentation

Deletes the computed values during periods of time when there are no sample data

Description

This function is used when the data analyst believes that a gap in the sample data record is so long that estimates during that period are not reliable. This is only used for periods of several years in duration. For this period, the values of Conc, Flux, FNConc and FNFlux are all converted to NA.

Usage

blankTime(eList, startBlank, endBlank)

Arguments

eList

named list with at least the Daily dataframe

startBlank

character specifying starting date of blank period, input in quotes in yyyy-mm-dd format

endBlank

character specifying the ending date of blank period, input in quotes in yyyy-mm-dd format

Details

The startBlank and endBlank arguments should generally coincide with the starting and ending date of the period of analysis that is being used. startBlank should be placed fairly close to the start of the period of no data and endBlank should be placed fairly close to the end of the period of no data. They do not eliminate any water quality data from the set of data being used to estimate the model, they only eliminate results computed for the specified blank period. If the data set has more than one large data gap the blankTime() function can be used multiple times to blank out multiple sets of results.

Value

eList named list with modified Daily data frame.

Examples

startBlank = "2004-10-01"
endBlank = "2006-09-30"
eList <- Choptank_eList
eList <- blankTime(eList, startBlank, endBlank)

USGS-R/EGRET documentation built on Nov. 20, 2024, 7:45 p.m.