hello my dear friends

i have a time series includes 324 month (SPI values) i wanted to extract and select them like this picture in R studio, i don't have any idea which package or command to use and start

events:2 and more negative values in row

severity: sum of negative values in row ,sum of negative events

duration: length of events for example at least 2 or more month in row

peak : select the most negative value in the events

thanks a lot.

More Morteza Shabestari's questions See All
Similar questions and discussions