ddpcr (version 1.11)

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)

Arguments

x

Vector of numbers.

Value

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

Examples

Run this code
# NOT RUN {
local_minima(c(1, 5, 3, 2, 4, 3))
# }

Run the code above in your browser using DataCamp Workspace