Questions tagged [spatialpack]

An R package to assess the association between two spatial processes.

3 questions
9
votes
1 answer

Spatial correlogram using the raster package

Dear Crowd Problem I tried to calculate a spatial correlogram with the packages nfc, pgirmess, SpatialPack and spdep. However, I was troubling to define the start and end-point of the distance. I'm only interested in the spatial autocorrelation at…
Benasso
  • 123
  • 5
4
votes
1 answer

Correlation between 2 rasters accounting for spatial autocorrelation

I want to test the correlation in the values between 2 spatial raster data sets (that perfectly overlap). I could just do: correlation(getValues(raster1), getValues(raster2)) but both raster datasets are spatial autocorrelated. Instead, I am…
tsutsume
  • 95
  • 5
0
votes
1 answer

Calling on the content of an object, and not the name of the object. Or renaming the object the name of the content of said object

So my goal is to create a function that will first try to load a package. If it cannot be loaded it will then try to install it and then load it. I saw this type of code somewhere and I used it in a couple of my functions, where I always specified…
Andrew Taylor
  • 3,438
  • 1
  • 26
  • 47