This seems pretty basic, but I can't get any data to work except for the
documented examples.  When the goal is to get to SpatialPixels, here is what
I see...

> x <- runif(10,1,10)
> y <- runif(10,1,10)
> z <- rnorm(10,0,1)
> MyData <- as.data.frame(cbind(x,y,z))
> library(gstat)
> coordinates(MyData) <- ~x + y
> gridded(MyData) <- TRUE
suggested tolerance minimum: 0.893182669294186 
Error in points2grid(points, tolerance, round, fuzz.tol) : 
  dimension 1 : coordinate intervals are not constant

I've spent way too much time trying to get my data to work.  Please help. 
Thanks.
-- 
View this message in context: 
http://www.nabble.com/How-to-use-your-own-data-in-gstat-and-sp--tp24994744p24994744.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to