Merge two data frames considering a range match between key columns
问题 I am a beginner in programming in R. I am at the moment trying to retrieve some site names from a dataframe containing the X and Y coordinates and site names and copy them into a different dataframe with specific points. FD <- matrix(data =c(rep(1, 500), rep(0, 500), rnorm(1000, mean = 550000, sd=4000), rnorm(1000, mean = 6350000, sd=20000), rep(NA, 1000)), ncol = 4, nrow = 1000, byrow = FALSE) colnames(FD) <- c('Survival', 'X', 'Y', 'Site') FD <- as.data.frame(FD) shpxt <- matrix(c(526654.7