R/findPeaks.R

Defines functions findPeaks

findPeaks <- function(x) {
  which(diff(sign(diff(x, na.pad = FALSE)), na.pad = FALSE) < 0) + 1
}

Try the xRing package in your browser

Any scripts or data that you put into this service are public.

xRing documentation built on April 22, 2022, 5:05 p.m.