# read in sample forcings data
ff <- system.file("extdata","run1_ForcingFunctions.csv", package = "RavenR")
rvn_forcing_data <- RavenR::rvn_forcings_read(ff)
# get the indices of the water year for October 1 (the default)
rvn_wyear_indices(rvn_forcing_data$forcings)
rvn_wyear_indices(rvn_forcing_data$forcings) %>%
rvn_forcing_data$forcings[., 1:2]
# get the indices of the start of the water year for July 1
## note that the last period is the last index, and not a complete water year period
rvn_wyear_indices(rvn_forcing_data$forcings, mm=6, dd=30) %>%
rvn_forcing_data$forcings[., 1:2]
Run the code above in your browser using DataLab