Learn R Programming

ddpcr (version 1.15.2)

local_maxima: 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)

Value

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

Arguments

x

Vector of numbers.

Examples

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

Run the code above in your browser using DataLab