I'm trying to cluster a spatial dataset, and use the cluster labels as an input to a second process. I've been using the spdep package in R.
I've got gridded data at .5 degree lat/lon resolution. There are 19 covariates in the example subset of it linked here
The following shows that I can't calculate the minimum spanning tree -- a necessary input into skater -- when the dataset includes areas undefined because they are over water.
How would one get around this?
system('wget https://www.dropbox.com/s/i72na4k0k5gqvvx/example_data?dl=0')load('example_data') 1> with(x, plot(lon,lat)) 1> library(spdep) 1> bh.nb lcosts -117,]bh.nb
I've got gridded data at .5 degree lat/lon resolution. There are 19 covariates in the example subset of it linked here
The following shows that I can't calculate the minimum spanning tree -- a necessary input into skater -- when the dataset includes areas undefined because they are over water.
How would one get around this?
system('wget https://www.dropbox.com/s/i72na4k0k5gqvvx/example_data?dl=0')load('example_data') 1> with(x, plot(lon,lat)) 1> library(spdep) 1> bh.nb lcosts -117,]bh.nb