Data frames

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Data frames

king01
hi just new to this course:

is it possible to join two dataframes to form a new dataframe and compare
each element by df.column to find the difference and assign the logical
value for indexing? eg.

df1=                   df2                            dfNew=                  

 c    b    p          c   b   p          c1   c2   b1   b2   p1    p2   diff  
newcol logical  
01  aa   100       01 aa  110       01   01   aa   aa   100  110    10      
0    
02  bb   200       02 bb  200       02   02   bb   bb   200  200     0      
1
03  cc   300       na na  na         03   na   cc   na   300  na    300      
0
na  na   na         04 dd  50         na   04   na   dd    na  50      50      
0

how am i going do it in octave or is there any wiser solution for these?
thanks in advance.




--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html

_______________________________________________
Help-octave mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-octave