ch_cut_block: Extracts a specified time period from a longer record

ch_cut_blockR Documentation

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)

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

Value

Returns a portion of the original dataframe.

Author(s)

Paul Whitfield

Examples

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

CSHS-hydRology/CSHShydRology documentation built on Aug. 18, 2022, 4:44 p.m.