rowSums_colSums | R Documentation |
Form Row and Column Sums
rowSums_(x)
colSums_(x)
x |
Symbolic matrix |
if (has_sympy()) {
X <- matrix_(paste0("x_",c(1,1,1,1,2,2,2,2,3,4,3,4)), nrow=4)
rowSums_(X)
colSums_(X)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.