Entering edit mode
2.3 years ago
selplat21
▴
20
I have two dataframes loaded in R:
File 1:
Sample1 Sample2 Metric
AAA BBB 0.1
BBB DDD 0.4
CCC FFF 1.2
File 2
Sample Site
AAA A
BBB C
CCC B
DDD C
EEE A
FFF B
I want to set the metric to NA in any rows in file 1 where both samples do not have the same Site in file 2.
You rock. Thank you!