powered by
For row and column maxs and mins for numeric arrays (or data frames).
colMaxs(x)
numeric or integer, matrix.
A numeric vector.
These functions are equivalent, per example for colMaxs(X), to apply(X, 1, max), but are a lot faster.
colMaxs(X)
apply(X, 1, max)
http://pgm-solutions.com/packages
# NOT RUN { X <- matrix(rpgm.rnorm(36), 6, 6) colMaxs(X) rowMaxs(X) colMins(X) rowMins(X) # }
Run the code above in your browser using DataLab