The R Project SVN R

Rev

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

Rev 27273 Rev 27541
Line 62... Line 62...
62
  \code{\link{range}} (\emph{both} min and max) and
62
  \code{\link{range}} (\emph{both} min and max) and
63
  \code{\link{which.min}} (\code{which.max}) for the \emph{arg min},
63
  \code{\link{which.min}} (\code{which.max}) for the \emph{arg min},
64
  i.e., the location where an extreme value occurs.
64
  i.e., the location where an extreme value occurs.
65
}
65
}
66
\examples{
66
\examples{
-
 
67
require(stats)
67
min(5:1,pi)
68
min(5:1,pi)
68
pmin(5:1, pi)
69
pmin(5:1, pi)
69
x <- sort(rnorm(100));  cH <- 1.35
70
x <- sort(rnorm(100));  cH <- 1.35
70
pmin(cH, quantile(x)) # no names
71
pmin(cH, quantile(x)) # no names
71
pmin(quantile(x), cH) # has names
72
pmin(quantile(x), cH) # has names