The R Project SVN R

Rev

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

Rev 70994 Rev 71023
Line 10... Line 10...
10
\alias{pmax}
10
\alias{pmax}
11
\alias{pmin}
11
\alias{pmin}
12
\alias{pmax.int}
12
\alias{pmax.int}
13
\alias{pmin.int}
13
\alias{pmin.int}
14
\description{
14
\description{
15
  Returns the (parallel) maxima and minima of the input values.
15
  Returns the (regular or \bold{p}arallel) maxima and minima of the
-
 
16
  input values.
-
 
17
 
-
 
18
  \code{pmax*()} and \code{pmin*()} take one or more vectors as
-
 
19
  arguments, recycle them to common length and return a single vector
-
 
20
  giving the \emph{\sQuote{parallel}} maxima (or minima) of the argument
-
 
21
  vectors.
16
}
22
}
17
\usage{
23
\usage{
18
max(\dots, na.rm = FALSE)
24
max(\dots, na.rm = FALSE)
19
min(\dots, na.rm = FALSE)
25
min(\dots, na.rm = FALSE)
20
 
26
 
Line 109... Line 115...
109
\note{
115
\note{
110
  \sQuote{Numeric} arguments are vectors of type integer and numeric,
116
  \sQuote{Numeric} arguments are vectors of type integer and numeric,
111
  and logical (coerced to integer).  For historical reasons, \code{NULL}
117
  and logical (coerced to integer).  For historical reasons, \code{NULL}
112
  is accepted as equivalent to \code{integer(0)}.% PR#1283
118
  is accepted as equivalent to \code{integer(0)}.% PR#1283
113
 
119
 
114
  \code{pmax} and \code{pmin} will also work on classed objects with
120
  \code{pmax} and \code{pmin} will also work on classed S3 or S4 objects
115
  appropriate methods for comparison, \code{is.na} and \code{rep} (if
121
  with appropriate methods for comparison, \code{is.na} and \code{rep}
116
  recycling of arguments is needed).
122
  (if recycling of arguments is needed).
117
}
123
}
118
\seealso{
124
\seealso{
119
  \code{\link{range}} (\emph{both} min and max) and
125
  \code{\link{range}} (\emph{both} min and max) and
120
  \code{\link{which.min}} (\code{which.max}) for the \emph{arg min},
126
  \code{\link{which.min}} (\code{which.max}) for the \emph{arg min},
121
  i.e., the location where an extreme value occurs.
127
  i.e., the location where an extreme value occurs.