I've done quite a bit of reading on this but I've not been able to get an answer that works yet.
I've been using the setdiff
function in R to look at the number of matches between two dataframes. I know that I have 71 out of 200 observations matching and the remainder non-matching.
So far I've just done this to get the number of matching and non-matching values:
check = setdiff(dataset1$variable1, dataset2$variable1)
How do I return a list of the matching and non-matching values?
Thanks,
Ed