Collapses a matrix by summing over rows
Collapses a matrix by summing over a specific number of rows
regroup(data,g)
data |
a matrix |
g |
a positive integer beween 1 and the number of rows of data |
reduced matrix found by summing over rows
Jim Albert
data=matrix(c(1:20),nrow=4,ncol=5) g=2 regroup(data,2)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.