Say I have two dataframes, df1 and df2, that look like this:
student x y teacher value
s.name1 4 5 t.name1 1
s.name2 3 3 t.name1 2
s.name2 2 1 t.name2 3
s.name3 5 5 t.name3 1
and that I would like to combine these two dataframes based on the contents of df$student, df$x, df$y, and df$teacher being the same, but NOT df$value. What is the best approach for this? Thanks.
Edit: Figured it out using merge(), posted the solution.