csums | R Documentation |
Improved version of colSums()
for matrix output. The sum of columns is
kept as a row vector with column names and the resulting row can be
named in the same command.
csums(df, row_name = NULL)
df |
A matrix with named rows and columns. |
row_name |
String, name to assign to resulting row. |
A row matrix (with rows and column names)
wio <- make_wio("wiodtest", quiet = TRUE)
csums(wio$Y, "TOTAL_Y")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.