Description Usage Arguments Examples
the findLocalMin
and findLocalMax
functions take an
object of type vector and return a boolean vector of the same length,
that holds TRUE
if the element is a local extreme. if there is
a plateau, you will get the index of the first element in the plateau.
1 | findLocalMin(x)
|
x |
a vector. |
1 2 3 | v <- c(1,2,3,4,3,2)
findLocalMax(v)
# returns c(FALSE, FALSE, FALSE, TRUE, FALSE, FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.