| find.minmax | R Documentation |
Find local minima and maxima of a time series
find.minmax (timeseries)
timeseries |
time series in matrix format ( |
Returns a named list containing:
mins |
|
maxs |
|
Tarik C. Gouhier (tarik.gouhier@gmail.com)
t1=runif(100)
min.max=find.minmax(t1)
min.max$maxs
plot (t1, t="l")
points (min.max$mins, col="blue", bg="blue", pch=19)
points (min.max$maxs, col="red", bg="red", pch=19)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.