powered by
Takes in a vector and finds the local minimas. (Credit user Tommy https://stackoverflow.com/questions/6836409/finding-local-maxima-and-minima).
localMinima(x)
Any vector
A list of local minimas in the vector
# NOT RUN { minimas <- localMinima(x) # } # NOT RUN { # }
Run the code above in your browser using DataLab