peaks2: Find Peaks 2

View source: R/find_peaks.R

peaks2R Documentation

Find Peaks 2

Description

Given a series find local peaks by picking values bigger than those on either side functions posted to the r-help mailing list, 23 November 2005 both by Marc Kirchner marc.kirchner@iwr.uni-heidelberg.de This is the 2004 version by Petr Pikal, after Brian Ripley === Petr Pikal in 2004 === https://stat.ethz.ch/pipermail/r-help/2005-November/083240.html Assumed to be in the public domain.

Usage

peaks2(series, span = 3)

Arguments

series

the vector of numbers to find peaks in.

span

the window size to use when looking for lower values.

Value

a logical vector, TRUE for each peak


yadbor/bluer documentation built on Jan. 31, 2023, 7:44 p.m.