Skip to content

Data frames intersections

2 messages · Julie Poitevin, Jim Lemon

#
Hello,

  
  
#
Hi Julie,
Your task is a bit obscure and I don't have the function
"st_intersects", but I'll suggest this:

br_list<-list()
# your commands would have only run once
for (i in 1:nrow(arrets_buffer)) {
  br_list[[i]]<- st_intersects(x = batiments, arrets_buffer[i,], sparse = FALSE)
}

You should get a list with nrow(arrets_buffer) elements, each of which
will be the result of your "st_intersects" function.

Jim
On Wed, Apr 22, 2020 at 6:00 PM Julie Poitevin <julie at e-poitevin.fr> wrote: