Minima and maxima of two vectors/matrices and Column-row wise minima and maxima of two matrices | R Documentation |
Minima and maxima of two vectors/matrices and Column-row wise minima and maxima of two matrices.
colPmax(x, y)
colPmin(x, y)
Pmax(x, y,na.rm = FALSE)
Pmin(x, y,na.rm = FALSE)
Pmin_Pmax(x, y,na.rm = FALSE)
x |
A numerical vector or matrix with numbers. |
y |
A numerical vector with numbers. |
na.rm |
TRUE or FAlSE for remove NAs if exists. |
The parallel minima or maxima are returned. This are the same as the base functions pmax and pmin.
A numerical vector/matrix with numbers, whose length is equal to the length of the initital matrices containing the maximum or minimum between each pair.
Manos Papadakis
R implementation and documentation: Manos Papadakis <papadakm95@gmail.com>.
Sort, colMins, colMaxs, colMedians
x <- matrix(rnorm(100),10,10)
y <- matrix(rnorm(100),10,10)
res<-colPmax(x, y)
res<-colPmin(x, y)
x<-y<-NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.