[R] help needed

gauravbhatti gaurav15984 at hotmail.com
Fri Dec 5 08:39:36 CET 2008


 I need some help in comparing t values avalaible from two data frames. I
have two data frames with each containing a column for t valuse
For example one data frame looks like as follows
      ID        logFC            t               P.Value      adj.P.Val        
B
39   a39 -1.737037118 -2.861784118 0.004212637 0.3120295 -2.504407
1     a1 -1.660000000 -2.734864780 0.006240591 0.3120295 -2.729203
53   a53  1.443725119  2.378549988 0.017380880 0.4517324 -3.305806
52   a52 -1.323602459 -2.180646836 0.029209548 0.4517324 -3.591351
14   a14 -1.288769209 -2.123258747 0.033732176 0.4517324 -3.669516
58   a58  1.286212422  2.119046418 0.034086544 0.4517324 -3.675172
75   a75 -1.268523811 -2.089904273 0.036626400 0.4517324 -3.713989

I have another one like it but the order of the ID column is different as
shown below
      ID        logFC            t               P.Value      adj.P.Val        
B
76   a1   0.157096693 -0.258818201 0.795775514 0.9146845 -5.075035
63   a53 -0.146205781 -0.240875326 0.809651746 0.9200588 -5.077872
88   a58  0.108707988  0.179097379 0.857861240 0.9638890 -5.086083
23   a52 -0.086871304 -0.143121247 0.886194425 0.9757266 -5.089752
98   a53  0.085552023  0.140947720 0.887911243 0.9757266 -5.089947
90   a14  0.068456451  0.112782613 0.910202903 0.9868965 -5.092209
91   a75 -0.052087970 -0.085815394 0.931613169 0.9868965 -5.093904

I have to plot the t values  obtained for each id against each other. Since
the order of the IDs in the two data frames is different , I am finding it
difficult to plot the t values. Can anyone help in arranging the t values in
the increasing order of the ID values like 
1 a1 ..............
2 a2 ..................
2 a3 .................. 
Thank you
-- 
View this message in context: http://www.nabble.com/help-needed-tp20849087p20849087.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list