Re: [R] Deleting duplicate rows in a matrix at random

2010-06-03 Thread Magnus Torfason
> I need to remove all but one of each [row in a matrix], which > must be chosen at random. This request (included in full at the bottom), has been unanswered for a while, but I had the same problem and ended up writing a function to solve it. I call it "duplicated.random()" and it does exactly

[R] Deleting duplicate rows in a matrix at random

2010-03-24 Thread jeff.m.ewers
Hello, I am relatively new to R, and I've run into a problem formatting my data for input into the package RankAggreg. I have a matrix of gene titles and P-values (weights) in two columns: KCTD12 4.06904E-22 UNC93A 9.91852E-22 CDKN3 1.24695E-21 CLEC2B 4.71759E-21 DAB21.12062E-20 HSPB1