rowSums | R Documentation |
Form row and column sums and means for sparse spam
matrices
rowSums(x, na.rm = FALSE, dims = 1, ...)
colSums(x, na.rm = FALSE, dims = 1, ...)
rowMeans(x, na.rm = FALSE, dims = 1, ...)
colMeans(x, na.rm = FALSE, dims = 1, ...)
x |
a |
na.rm |
currently ignored |
dims |
ignored as we have only two dimensions. |
... |
potentially further arguments from other methods. |
Depending on the flag .
Vector of appropriate length.
Reinhard Furrer
apply.spam
, spam.options
.
x <- spam( rnorm(20), 5, 4)
rowSums( x)
c( x %*% rep(1,4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.