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

Description Usage Arguments Value

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 May 24, 2019, 5:01 a.m.