colPmax: Column-row wise minima and maxima of two matrices

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/Pmin.R

Description

Column-row wise minima and maxima of two matrices.

Usage

1
2
colPmax(x, y)
colPmin(x, y)

Arguments

x

A numerical vector with numbers.

y

A numerical vector with numbers.

Details

The parallel minima or maxima are returned. This are the same as the base functions pmax and pmin.

Value

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.

Author(s)

Manos Papadakis

R implementation and documentation: Manos Papadakis <papadakm95@gmail.com>.

See Also

Sort, colMins, colMaxs, colMedians

Examples

1
2
3
4
5
x <- matrix(rnorm(100),10,10)
y <- matrix(rnorm(100),10,10)
res<-colPmax(x, y)
res<-colPmin(x, y)
x<-y<-NULL

Rfast documentation built on May 18, 2021, 1:07 a.m.