[R] Finding a Diff within a Dataframe columns

Ramya ramya.victory at gmail.com
Mon Jan 31 02:32:37 CET 2011


Hi,

I have a Dataframe.

A       B      C       D
0.1    0.7   0.9   0.8
0.20  0.60 0.80  0.70
0.40  0.80  0.70 0.76

I need a resultant dataframe

(A-B)   (C-D)
-0.6     0.1
-0.40    0.1
-0.40   -0.06

Any suggestion would be of a great help

Thanks
Ramya

-- 
View this message in context: http://r.789695.n4.nabble.com/Finding-a-Diff-within-a-Dataframe-columns-tp3247943p3247943.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list