lmax.locate | R Documentation |
Identifies local maxima in a sequence of y values corresponding to x coordinates. Used in kin.extract function.
lmax.locate(x, y)
x |
Numeric vector of x coordinates |
y |
Numeric vector of y values |
Logical vector indicating which x values correspond to local maxima
x <- 1:5
y <- c(1,2,3,2,1)
lmax.locate(x, y) # Returns c(FALSE,FALSE,TRUE,FALSE,FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.