peaks: Peaks function

Description Usage Arguments Examples

View source: R/peaks.R

Description

This function finds the local maxima in a data frame

Usage

1
peaks(series, span = 3)

Arguments

series

the series of interest

span

Length of search. Defaults to 3.

Examples

1
2
x <- c(1:5,4,8:2,9,1)
peaks(x)

lingwhatics/daleym documentation built on May 21, 2019, 6:16 a.m.