The R Project SVN R

Rev

Rev 69353 | Rev 85981 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 69353 Rev 70465
Line 1... Line 1...
1
% File src/library/base/man/which.min.Rd
1
% File src/library/base/man/which.min.Rd
2
% Part of the R package, https://www.R-project.org
2
% Part of the R package, https://www.R-project.org
3
% Copyright 1995-2015 R Core Team
3
% Copyright 1995-2016 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{which.min}
6
\name{which.min}
7
\alias{which.min}
7
\alias{which.min}
8
\alias{which.max}
8
\alias{which.max}
Line 24... Line 24...
24
\arguments{
24
\arguments{
25
  \item{x}{numeric (logical, integer or double) vector or an \R object
25
  \item{x}{numeric (logical, integer or double) vector or an \R object
26
    for which the internal coercion to \code{\link{double}} works whose
26
    for which the internal coercion to \code{\link{double}} works whose
27
    \code{\link{min}} or \code{\link{max}} is searched for.}
27
    \code{\link{min}} or \code{\link{max}} is searched for.}
28
}
28
}
29
\note{
29
\section{Logical \code{x} -- First \code{TRUE} or \code{FALSE}}{
30
  For a \code{\link{logical}} vector \code{x} with both \code{FALSE} and
30
  For a \code{\link{logical}} vector \code{x} with both \code{FALSE} and
31
  \code{TRUE} values, \code{which.min(x)} and \code{which.max(x)} return
31
  \code{TRUE} values, \code{which.min(x)} and \code{which.max(x)} return
32
  the index of the first \code{FALSE} or \code{TRUE}, respectively, as
32
  the index of the first \code{FALSE} or \code{TRUE}, respectively, as
-
 
33
  \code{FALSE < TRUE}.  However, \code{match(FALSE, x)} or
-
 
34
  \code{match(TRUE, x)} are typically \emph{preferred}, as they do
33
  \code{FALSE < TRUE}.
35
  indicate mismatches.
34
}
36
}
35
\value{
37
\value{
36
  Missing and \code{NaN} values are discarded.
38
  Missing and \code{NaN} values are discarded.
37
 
39
 
38
  an \code{\link{integer}} or on 64-bit platforms, if
40
  an \code{\link{integer}} or on 64-bit platforms, if