Difference between two tables using R