Description Usage Arguments Value Examples
Find the position of peak in a vector.
1 |
x |
A numeric vector. |
threshold |
Integer, only values bigger than |
length |
Integer, minimum |
A numeric vector. The first element is the start index and the second element is the end index of the peak.
If multiple peaks exist, only output the start and end index of the one with maximun length.
If no peak exist, return c(0, 0)
.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.