Dear community,
I am trying to extract data from a spatial datapoints file using the GSIF package. I am getting an strange error message.
Even by copy-pasting the code from the tutorial (see below), I get the same message:
> ov <- over(soilgrids.r, pnts)
Error in .local(x, y, ...) : object 'ret' not found
library(rjson)
library(sp)
## 2 points:
pnts <- data.frame(lon=c(10.65,5.36), lat=c(51.81,51.48), id=c("p1","p2"))
coordinates(pnts) <- ~lon+lat
proj4string(pnts) <- CRS("+proj=longlat +datum=WGS84")
pnts
## REST example:
soilgrids.r <- REST.SoilGrids(c("ORCDRC","PHIHOX"))
ov <- over(soilgrids.r, pnts)
str(ov)
Any ideas!?
Gabriela
Department of Biology, Aarhus University, Denmark.