subset.fall: Subset an Object

[.fallR Documentation

Subset an Object

Description

Extracts or subsets an object of class "fall."

Usage

## S3 method for class 'fall'
x[i, ...]

Arguments

x

an object of class "fall."

i

index specifying the recession to extract. See Details.

...

not used, required for other methods.

Details

The values for i can be either a single numeric index or a single character string. If i is numeric, then extract that element number. If i is character, then extract that Index number.

Value

A data frame of the specified recession containing these columns:

Dates

The date of the observation

GWLeve

The ground water level value

Index

The recession index number

Seqno

The sequence number for each day of the recession

Note that the sequence number of the recession begins at 0 becuase that value represents the peak and the recession starts the following day.

See Also

fall

Examples

## Not run: 
library(smwrData)
data(GlacialRidge)
# Select the first recession of at least 10 days
with(GlacialRidge, fall(G12, datetime, MPelev=1126.42))[1]

## End(Not run)

USGS-R/DVstats documentation built on Oct. 11, 2022, 6:03 a.m.