Quantcast
Channel: Matching two data frames in R - Stack Overflow
Browsing latest articles
Browse All 2 View Live

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 Article


Matching 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

Browsing latest articles
Browse All 2 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>