I am trying to find a smooth way of creating a new data frame based on specific criteria of other data frames.
I currently have multiple data frames. Examples are as follows.
data frame A: data frame B: data frame B:
i j Distance i j Distance i j Distance
10 -10 1 5 -20 10 5 -10 4
5 -10 2 5 -10 2 20 -20 3
15 -5 5 15 -10 1
I then want to make a data frame containing all the data from data frame A, B & C where i = 5 and j = -10. Hence the final data frame will be:
i j Distance
5 -10 2
5 -10 2
5 -10 4
I will be wanting to create multiple data frames based on different values of i and j so anything that is easily adaptable would be great!
Thanks, Fiona