Learn R Programming

CSHShydRology (version 1.4.2)

ch_cut_block: Extracts a specified time period from a longer record

Description

The function could also be used to get the same period of time from several station for comparison.

Usage

ch_cut_block(DF, st_date, end_date)

Value

Returns a portion of the original dataframe.

Arguments

DF

A daily streamflow data frame as from ch_read_ECDE_flows

st_date

starting date format is %Y/%m/%d

end_date

ending date format is %Y/%m/%d

Author

Paul Whitfield

Examples

Run this code
data(CAN05AA008)
subset <- ch_cut_block(CAN05AA008,"2000/01/01", "2010/12/31")

Run the code above in your browser using DataLab