localMinima: Finds local minima of a vector

Description Usage Arguments Value Examples

View source: R/max_and_min.R

Description

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

Usage

1

Arguments

x

Any vector

Value

A list of local minimas in the vector

Examples

1
minimas <- localMinima(x)

CropDetectR documentation built on Sept. 20, 2019, 9:06 a.m.