first_local_minima: Finds the index of the first local minima in a series. If...

Description Usage Arguments Value

View source: R/first-local-minima.R

Description

Finds the index of the first local minima in a series. If value == F and no local minima is found, returns NA. If value == T and no local minima is found, returns min(v)

Usage

1
first_local_minima(v, value = F)

Arguments

v

A numeric vector containing the series.

value

Return the value at the local minima instead of the index?

Value

The index or value of the first local minima.


kahaaga/tstools documentation built on Nov. 30, 2017, 7:24 a.m.