I have two dataframes : df1
with 62,107 lines and 68 columns and df2
with 98,323 lines and 68 columns, same structure.
A want ALL the lines from df1
and ONLY the non_matching lines of df2
(on a column names "PK") ; into a final dataframe, df.
I've been looking around for outer join WITH ADDING a non matching request, but did not find any combined syntax.
I finally tried things like that :
df <- (merge(df1, df2, by.x = c("PK"), by.y = -c("PK")))
did not work !