how i can find out in result which 3 values are matched and want to use those values please help
library(sf)
#> Linking to GEOS 3.6.1, GDAL 2.2.3, PROJ 4.9.3
p1 <- data.frame(
lat=as.integer(runif(5,29,32)),
long=as.integer(runif(5,69,74))
)%>%
st_as_sf(coords = c("lat","long"), crs = 4326)
p2 <- data.frame(
lat=as.integer(runif(5,29,32)),
long=as.integer(runif(5,69,74))
) %>%
st_as_sf(coords = c("lat","long"), crs = 4326)
#nrow(st_join(p1,p2, join = st_equals, left = F)) == nrow(p1)
i=nrow(st_join(p1,p2, join = st_equals, left = F))
i
#> [1] 3 i want to find these 3 values HOW?
Created on 2020-02-15 by the reprex package (v0.3.0)