detect_flood_events

flood_divide

detect_groups(df, inds, gap_max = 5, extend = ddays(5))

detect_flood_events(date, Q, Q_min = 2, Q_peak = 10, gap_max = 5)

flood_divide(df, ...)

merge_flood(df, info_flood, format = "%Y.%m")

Arguments

df

A data.table with date and Q columns

gap_max

distance smaller than gap_max is considered as a same group

Q_min

minimum discharge to detect flood events

Q_peak

peak discharge to detect flood events

...

parameters passed to detect_flood_events()