allmax: Find all maxima

Description Usage Arguments Value Examples

Description

Find indices of all numbers equal to the maximum in a vector

Usage

1

Arguments

vector

A numerical vector

Value

A vector of the indices of the maxima

Examples

1
2
allmax(c(5,3,-7,5))
allmax(1:10)

Extreme-Mildness/GT.Tools documentation built on May 3, 2019, 8:31 p.m.