Suppose I have two data frames A and B A has three variables and B also has three variables. I would like to merge these two database but the requirement to merge is that the value of the second column in database A is less than the value of the second column in database B. Is there a R code to do this? Thanks
Dataframe A: V1a V2a V3a 1 2 3 5 2 3 4 6 3 Dataframe B: V1b V2b V3b 1 2 5 9 2 9 2 7 Dataframe C should be: V1a V2a V3a V1b V2b V3b 1 2 3 5 2 5 9 -- View this message in context: http://r.789695.n4.nabble.com/question-of-merging-two-dataframes-tp4345469p4345469.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.