peak_inrange: Peak In range

Description Usage Arguments Value

View source: R/peak_inrange.R

Description

Strategy to define peaks within an expected region. The algorithm uses the ration between a fast average and a slow average to define areas avobe the normal baseline. Those areas are identified as peaks and then labelled sequentially.

Usage

1
peak_inrange(x, n1 = 100L, n2 = 10L, peak_loc)

Arguments

x

numeric: time series to find the baseline.

n1

integer: number of points for the slow average.

n2

integer: number of points for teh fast average.

peak_loc

integer vector: expected location of the peaks.

Value

A data frame with the peaks and peak ID


phisanti/MyFunctions documentation built on Sept. 22, 2021, 7:37 p.m.