I was getting this error as well. The cause was either not having the coordinates and coordinate reference system (CRS) set or having the wrong CRS. I did both at the same time so I am not sure which it was.
Is your 'grid' a SpatialPixels object? Did you run a line like 'coordinates(grid) <- ~x + y' ? If so, did you then set the CRS? On Sat, Mar 11, 2017 at 7:38 AM, <[email protected]> wrote: > Dear R-Users, > Please anyone to help me with this error: > > kriged=krige(Nmin~1,locationsDD,grid,model=vgm(1,"Exp",150,1)) > Error in bbox(newdata) : object not a >= 2-column array > > Thank you so much in advance! > Kind Regards > Nina Philipova > _______________________________________________ > R-sig-Geo mailing list > [email protected] > https://stat.ethz.ch/mailman/listinfo/r-sig-geo > -- David Warner Research Fisheries Biologist U.S.G.S. Great Lakes Science Center 1451 Green Road Ann Arbor, MI 48105 734-214-9392 [[alternative HTML version deleted]] _______________________________________________ R-sig-Geo mailing list [email protected] https://stat.ethz.ch/mailman/listinfo/r-sig-geo
