Open wschwanghart opened 1 month ago
I just tried to run a simulation using krigeTg. I called the function like this:
k <- krigeTg(As ~ 1, locations = dfs, newdata = newdata, model = vmf, nmax = 30, nsim = 100, lambda = 0)
where dfs is a sf-object, and newdata is a stars object. The function returned following error
dfs
Error in OK@data : no applicable method for `@` applied to an object of class "stars"
Best regards, Wolfgang
This implies that sf and/or stars are not yet supported there; use (for now) as(..., "Spatial") before, and st_as_sf() or st_as_stars() afterwards.
sf
stars
as(..., "Spatial")
st_as_sf()
st_as_stars()
I just tried to run a simulation using krigeTg. I called the function like this:
where
dfs
is a sf-object, and newdata is a stars object. The function returned following errorBest regards, Wolfgang