Skip to content
Prev 28526 / 29559 Next

Spatial joins between sf and stars objects

Thanks Edzer, I should have checked if st_extract kept the order of the rows. In this case, a way to do it more generally is:

sf1 <- bind_cols(st_drop_geometry(sf1),
                 st_extract(st1, sf1))



Edzer Pebesma writes:
--
Julian Mariano Burgos, PhD
Hafranns?knastofnun, ranns?kna- og r??gjafarstofnun hafs og vatna/
Marine and Freshwater Research Institute
Botnsj?varsvi?s / Demersal Division
  Fornub??ir 5, IS-220 Hafnarfj?r?ur, Iceland
www.hafogvatn.is
S?mi/Telephone : +354-5752037
Netfang/Email: julian.burgos at hafogvatn.is