Loops For every column of the matrix (from 1 to 2000), repeat the calculation of the sum of the values in the table, and store the results into an object res: for(i in 1:2000) { write(s(m[,i]), file= test.txt , append=T) }
{}