which.min {linq} R Documentation

Where is the Min() or Max() or first TRUE or FALSE ?

Description


Determines the location, i.e., index of the (first) minimum or maximum of a
numeric (or logical) vector.

Usage

which.min(x,
    eval = NULL);

Arguments

x

numeric (logical, integer or double) vector or an R object for which the internal coercion to double works whose min or max is searched for.

eval

-

env

[as Environment]

Details

Authors

SMRUCC genomics Institute

Value

Missing and NaN values are discarded. an integer Or on 64-bit platforms, if length(x) = n>= 2^31 an integer valued double of length 1 Or 0 (iff x has no non-NAs), giving the index of the first minimum Or maximum respectively of x. If this extremum Is unique (Or empty), the results are the same As (but more efficient than) which(x == min(x, na.rm = True)) Or which(x == max(x, na.rm = True)) respectively. Logical x – First True Or False For a logical vector x with both FALSE And TRUE values, which.min(x) And which.max(x) return the index of the first FALSE Or TRUE, respectively, as FALSE < TRUE. However, match(FALSE, x) Or match(TRUE, x) are typically preferred, as they do indicate mismatches.

clr value class

Examples


[Package linq version 2.33.856.6961 Index]