library(sf)
library(meteo)
library(sp)
# prepare data
demo(meuse, echo=FALSE)
meuse <- meuse[complete.cases(meuse@data),]
data = st_as_sf(meuse, coords = c("x", "y"), crs = 28992, agr = "constant")
data.df <- data.prepare(data,
obs.col="zinc")
str(data.df)
Run the code above in your browser using DataLab