Skip to content
Prev 75233 / 398503 Next

How to pre-filter large amounts of data effectively

I do not fully comprehend the codes below. But if I usually want to
check if all the elements in a row/column are the same, then I would
check the variance or range and see if they are nearly zero.

 v.row <- apply( mat, 1, var )
 v.col <- apply( mat, 2, var )

 tol      <- 0
 good.row <- which( v.row > tol )
 good.col <- which( v.col > tol )


Regards, Adai
On Tue, 2005-08-09 at 12:22 +0200, Torsten Schindler wrote: