I have merged two dataframes in R using the following command.
tmp <- merge(df_a, df_b, by.x = c('colA'), by.y = c('colB'))
To my surprise more than 50% of the rows failed to merge which is not expected. I would like to identify the cases(from df_a
, df_b
) which failed to merge based on the given condition. Is there any way possible in R or we have to do command-line operations only ?
Edit: This can be achieved using one of the solution in this question and many other information can be obtained using the join functions!