| colMaxs | R Documentation |
Produce the same result as apply(x, 2, max), apply(x, 1, max),
apply(x, 2, min) and apply(x, 1, min), respectively, but ignore NA.
colMaxs(x, use_nan = FALSE)
rowMaxs(x, use_nan = FALSE)
colMins(x, use_nan = FALSE)
rowMins(x, use_nan = FALSE)
x |
a base::matrix or Matrix::Matrix object. |
use_nan |
if |
a numeric vector
mt <- Matrix::rsparsematrix(100, 100, 0.9)
colMaxs(mt)
apply(mt, 2, max) # the same
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.