.BG
.VE $Header: /usr3/s/current/s/.help/RCS/pmax,v 1.2 83/12/30 19:32:22 rab Exp $
.FN pmax
.FN pmin
.TL
pmax pmin: Parallel Maximum or Minimum
.CS
pmax(arg1, arg2, ...)
pmin(arg1, arg2, ...)
.PP
.AG argi
numeric structure.
.RT
vector whose first element is the maximum (`pmax') or
minimum (`pmin') of the first elements of the arguments, and
similarly for the second element, etc.  The length of the
vector is the length of the longest argument.  Shorter
vectors are reused cyclically.  Missing values (NA) are
allowed; if an element of any of the arguments is NA, the
corresponding element of the result is also NA.
.EX
z <- pmax(x,y,5) # vector as long as larger of x and y
     # where z[i] is max of x[i], y[i], and 5
.PP
Note the difference between `pmax', `pmin' and `max', `min'.  The
latter give the single element which is the max or min of all the
arguments.  See also `range'.
.KW basic*
.KW math
.WR
