which_max_tied: Get maximum value randomly breaking ties

Description Usage Arguments Details

View source: R/functions_utility.R

Description

Returns the index of the maximum value in vector vec.

Usage

1
which_max_tied(x, equal_is_random = TRUE)

Arguments

x

vector of values

equal_is_random

boolean

Details

If there is a tie, and equal_is_random is TRUE, the index of one of the tied maxima is returned at random. Otherwise, the value with the lowest index is returned.


Nth-iteration-labs/contextual documentation built on July 28, 2020, 1:13 p.m.