View source: R/rvn_utilities.R
rvn_apply_wyearly_which_max_xts | R Documentation |
Applies the which.max function within each water year period, and returns the corresponding max values and dates in an xts format.
rvn_apply_wyearly_which_max_xts(x, mm = 9, dd = 30)
x |
xts object |
mm |
month of water year ending (default 9) |
dd |
day of water year (default 30) |
xts object with max values and corresponding dates
data(rvn_hydrograph_data)
# obtain peak observed flows in each water year period
rvn_apply_wyearly_which_max_xts(rvn_hydrograph_data$hyd$Sub43_obs)
# will return a warning with no result if multiple columns supplied
rvn_apply_wyearly_which_max_xts(rvn_hydrograph_data$hyd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.