Re: [R] removing rows from a matrix using condition within groups

2010-10-21 Thread swam
thanks Henrique , it did work with a slight modif subset(merge(X, Y, by.x = 'groups', by.y = 1, all = TRUE), var2http://r.789695.n4.nabble.com/removing-rows-from-a-matrix-using-condition-within-groups-tp3004132p3005899.html Sent from the R help mailing list archive at Nabble.com. ___

Re: [R] removing rows from a matrix using condition within groups

2010-10-21 Thread swam
I tired this and seems to capture only a few -- View this message in context: http://r.789695.n4.nabble.com/removing-rows-from-a-matrix-using-condition-within-groups-tp3004132p3005894.html Sent from the R help mailing list archive at Nabble.com. __ R-

Re: [R] removing rows from a matrix using condition within groups

2010-10-20 Thread Henrique Dallazuanna
Try this: subset(merge(X, Y, by.x = 'groups', by.y = 1, all = TRUE), values < V2, -V2) On Wed, Oct 20, 2010 at 1:37 PM, swam wrote: > > I am needing some help in removing certain rows in a data.matrix and then > do > some calculation. So Iam need to removing certain values above a threshold >