library(sf)
if(require(sp, quietly = TRUE)) {
data(meuse, package = "sp")
meuse <- st_as_sf(meuse, coords = c("x", "y"), crs = 28992,
agr = "constant")
}
zinc.cg <- correlogram(x = meuse, v = meuse$zinc, dist = 250, ns = 9)
Run the code above in your browser using DataLab