I have what seems a simple requirement, but I can't seem to achieve the desired result. My dataframes are rather large, so I will just give a screenshot:
What I want is: if ps2c$ps == present2$pn then ps2c$sf == present2$sf.
If it is not clear, for every ps2c$ps there is a present2$pn (present2 is just the mean data).
head(ps2c)andhead(present2)into your Q, select the pasted code/output, and click the code button in the toolbar (the one that looks like braces{}) or pressCtrl+kto have your code formatted appropriately.head()only shows the first few lines - my point was, if you can show a screenshot you can show the code and output fromhead().