Thanks a lot, Roger! There was indeed a problem with the way I built data_pixels, there shouldn't have been any duplicated observations. I've fixed it and all is working now.
A warning for duplicates might be a good idea Cheers, Elena -- View this message in context: http://r-sig-geo.2731867.n2.nabble.com/trouble-coercing-SpatialPixelsDataFrame-into-SpatialGridDataFrame-tp5654305p5656786.html Sent from the R-sig-geo mailing list archive at Nabble.com. _______________________________________________ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo