ddpcr (version 1.15.2)

local_minima: Get the indices of the local minima in a list of numbers

Description

Get the indices of the local minima in a list of numbers

Usage

local_minima(x)

Value

A vector containing the indices of the elements that are local minima in the given input.

Arguments

x

Vector of numbers.

Examples

Run this code
local_minima(c(1, 5, 3, 2, 4, 3))

Run the code above in your browser using DataLab