Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

hilow

Find Maxima and Minima


Description

Search for Extrema along time series

Usage

hilow(y)

Arguments

y

time series

Value

LIST:

hi

indexes to peaks

lo

indexes to valleys

Author(s)

Jonathan M. Lees<jonathan.lees.edu>

See Also

peaks

Examples

ex <- seq(from=0, to=4*pi, length = 200)

y <- sin(ex)
plot(ex, y, type='l')

peakval <- hilow(y)

abline(v=ex[peakval$hi], col='green')
abline(v=ex[peakval$lo], col='red')

RSEIS

Seismic Time Series Analysis Tools

v3.9-3
GPL (>= 2)
Authors
Jonathan M. Lees [aut, cre], Jake Anderson [ctb], Leonard Lisapaly [ctb], Dave Harris [aut, cph]
Initial release
2020-08-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.