Skip to contents

Find local maxima in a neighbourhood. To find local minima, just provide -x instead of x.

Usage

find_peaks(x, m = 3)

Arguments

x

numeric vector.

m

size of the neighbourhood.

Value

A vector of indices.