Re: [R] Sorting Data Frame Without Loop

2011-06-10 Thread jim holtman
This will give you the unique gene values: > colA <- c("M-012847-00" ,"M-012847-00" ,"M-015544-00", "M-015544-00", > "M-024202-00","M-024202-00") > colB <- c("NM_057175", "NM_057175", "NM_153008", "NM_153027", "NM_207330", > "NM_207330") > colC <- c( 'NARG1', 'TBDN100', 'FLJ30277', 'FLJ31659', '

Re: [R] Sorting Data Frame Without Loop

2011-06-10 Thread jim holtman
Is this what you want: > colA <- c("M-012847-00" ,"M-012847-00" ,"M-015544-00", "M-015544-00", > "M-024202-00","M-024202-00") > colB <- c("NM_057175", "NM_057175", "NM_153008", "NM_153027", "NM_207330", > "NM_207330") > colC <- c( 'NARG1', 'TBDN100', 'FLJ30277', 'FLJ31659', 'NIPAL1', 'NPAL1') >

[R] Sorting Data Frame Without Loop

2011-06-10 Thread hi Berven
Hello all! I am currently trying to sort a data frame in a particular way, but I am having some difficulties with this. Specifically I want to sort the below dataset in such a way that there is only one line per ProteinID and if there are multiple GeneID or GeneName entries for a single prote