# NOT RUN {
# You can use any of the features `feat_*` in conjunction with `features`
# like so:
library(dplyr)
library(fabletools)
library(tsibble)
djants <- djan %>%
hydro_events(
q = discharge,
datetime = time,
window = 21
) %>%
as_tsibble(
key = he,
index = time
)
djants %>%
features(
time, # variable you want to explore
feat_event
) # the feature summarisation you want to perform
# }
Run the code above in your browser using DataLab