Return the index or the value of the local extremums of a vector. In case of ties, the first value is returned.
1 2 3 4 5 6 7 | lmin(x)
lmax(x)
which.lmin(x)
which.lmax(x)
|
x |
Sample. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.