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