Skip to content
Prev 307133 / 398506 Next

loop for column substraction of a matrix

Or, using your mapply solution, compute

rs <- rowSums(mat1)

and then use it for all subtractions. With a larger dataset this would 
be probably faster.

Rui Barradas
Em 05-10-2012 22:41, arun escreveu: