I have a large data frame 3000 columns and 3000 rows and I need to sum every 5 rows and then every 5 columns and convert my data frame into 600 rows and 600 columns: my data is like this
matches1 matches2 matches3 matches4 matches5 ...
1 0 1 0 1
0 1 0 0 1
0 1 0 1 0
1 0 1 0 1
0 1 1 1 1
my expected results are this: my data is like this for the first 5 rows and 5columns is this:
w1 ... w600
14