Learn R Programming

CropDetectR (version 0.0.1)

localMinima: Finds local minima of a vector

Description

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

Usage

localMinima(x)

Arguments

x

Any vector

Value

A list of local minimas in the vector

Examples

Run this code
# NOT RUN {
minimas <- localMinima(x)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab