local_maxima: Get the indices of the local maxima in a list of numbers

View source: R/utils.R

local_maximaR Documentation

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

Description

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

Usage

local_maxima(x)

Arguments

x

Vector of numbers.

Value

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

Examples

local_maxima(c(1, 5, 3, 2, 4, 3))

ddpcr documentation built on Aug. 21, 2023, 1:07 a.m.