sumncol | R Documentation |
Groups a matrix by columns, summing every Nth column. Matrix should be multiple of N.
sumncol(df, N, col_names = NULL)
df |
A matrix with named rows and columns. |
N |
Integer, specifying the resulting number of columns. |
col_names |
String vector of length N, with names to assign to the resulting columns. |
A matrix with N columns, where each columns is the sum of every Nth column of the original matrix.
wio <- make_wio("wiodtest", quiet = TRUE)
sumncol(wio$Yfd, wio$dims$FD, paste0("WLD", "_", wio$names$fd_names))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.