localMaxima: Finds local maxima of a vector

Description Usage Arguments Value Examples

View source: R/max_and_min.R

Description

Takes in a vector and finds the local maximas. (Credit user Tommy https://stackoverflow.com/questions/6836409/finding-local-maxima-and-minima).

Usage

1

Arguments

x

A 1D array or vector

Value

A list of local maximas in the vector

Examples

1
maximas <- localMaxima(x)

niconaut/crop.row.finder documentation built on June 29, 2020, 6:10 a.m.