Hello Community,
I'm new to Rstudio and I have a problem with it,
I have two data frames and I want to compare two columns and sorting out similar values with a range that I can define.
For example,
df1 df2
A B C A B C
1 1.5
6 20
10 12
3 60
in this example if the range is +/- 2 , I have to be able to sort out the first and forth values along with other informations contained in columns B and C
The format of your data is not very clear to me. Are df1 and df2 two distinct data frames? Also A, B and C are repeated twice. Does each dataset have 3 columns? You could create a data frame with data.frame() and post your code so that we can replicate it.