Learn R Programming

dynatopmodel (version 1.2.1)

time_to_peak: Time between the peak rainfall and the peak discharge

Description

Return the lag, in hours, between the peak in the rainfall record and that of the discharge

Usage

time_to_peak(rain, qsim, units = "hour")

Arguments

rain

Time series of rainfall.

qsim

Time series of discharges.

units

Units in which to return the value

See Also

time_at_peak

Examples

Run this code
# NOT RUN {
require(dynatopmodel)

data(brompton)

with(brompton$storm.run, time_to_peak(rain, qsim))
# }

Run the code above in your browser using DataLab