pos | R Documentation |
Calculates component-wise max(X,0)
for a matrix X.
pos(X)
X |
A data matrix. |
A matrix in the same dimension of X
, after max(x,0)
was applied to each component x
of X
.
X <- matrix(c(1, -2, -3, 4, 5, -6), nrow = 3, ncol = 2) pos(X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.