powered by
Groups a matrix by columns, summing every Nth column. Matrix should be multiple of N.
sumncol(df, N, col_names = NULL)
A matrix with N columns, where each columns is the sum of every Nth column of the original matrix.
A matrix with named rows and columns.
Integer, specifying the resulting number of columns.
String vector of length N, with names to assign to the resulting columns.
wio <- make_wio("wiodtest", quiet = TRUE) sumncol(wio$Yfd, wio$dims$FD, paste0("WLD", "_", wio$names$fd_names))
Run the code above in your browser using DataLab