Extremes {BiocGenerics} | R Documentation |
Maxima and minima
Description
pmax
, pmin
, pmax.int
and pmin.int
return the
parallel maxima and minima of the input values.
NOTE: This man page is for the pmax
, pmin
, pmax.int
and pmin.int
S4 generic functions defined in the
BiocGenerics package.
See ?base::pmax
for the default methods
(defined in the base package).
Bioconductor packages can define specific methods for objects
(typically vector-like or matrix-like) not supported by the default
methods.
Usage
pmax(..., na.rm=FALSE)
pmin(..., na.rm=FALSE)
pmax.int(..., na.rm=FALSE)
pmin.int(..., na.rm=FALSE)
Arguments
... |
One or more vector-like or matrix-like objects. |
na.rm |
See |
Value
See ?base::pmax
for the value returned by the
default methods.
Specific methods defined in Bioconductor packages will typically return an object of the same class as the input objects.
See Also
-
base::pmax
for the defaultpmax
,pmin
,pmax.int
andpmin.int
methods. -
showMethods
for displaying a summary of the methods defined for a given generic function. -
selectMethod
for getting the definition of a specific method. -
pmax,Rle-method in the S4Vectors package for an example of a specific
pmax
method (defined for Rle objects). -
BiocGenerics for a summary of all the generics defined in the BiocGenerics package.
Examples
pmax
showMethods("pmax")
selectMethod("pmax", "ANY") # the default method
pmin
showMethods("pmin")
selectMethod("pmin", "ANY") # the default method
pmax.int
showMethods("pmax.int")
selectMethod("pmax.int", "ANY") # the default method
pmin.int
showMethods("pmin.int")
selectMethod("pmin.int", "ANY") # the default method