2
Come combinare oggetti sfc dal pacchetto R sf
Usando il pacchetto R sf, come si combinano gli sfcoggetti? Ad esempio, dato il seguente codice, come si potrebbe creare un singolo sfcoggetto sfc12che include le geometrie di entrambi sfc1e sfc2? ( length(sfc12)dovrebbe essere 2.) library(sf) pt1 = st_point(c(0,1)) pt2 = st_point(c(1,1)) sfc1 = st_sfc(pt1) # An sfc object sfc2 …