I want to subset a data frame (with millions of data rows) thousands of times, using values in two columns in another data frame. Currently I was using the example provided by Akrun
subset(df1, (Latitude >= (df2$Lat - 0.01)) & (Latitude <= (df2$Lat + 0.01)))
However, this seems to return all of the data that matches any of the rows in the second data frame. How can I adjust this so that it takes a third column from the second data frame as a name for each row subset pair?
Reference; Subset data frame based on range of values in second data frame