↧
Answer by BrodieG for Matching two data frames in R
I may be misunderstanding, but doesn't this do what you want (i.e. each data.frame with only the values of the first column present in the first column of the other)?A[A$x_1 %in% B$x_2,]# x_1 y_1# 1 A1...
View ArticleMatching two data frames in R
I have a question about the output I'm getting from using the match function. I have two dataframes which are dissimilar in their number of rows and row names. I wish to obtain two new dataframes from...
View Article