help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Data frames


From: king01
Subject: Data frames
Date: Sat, 9 Dec 2017 23:00:48 -0700 (MST)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]