I would like to convert my point data to grid data my data contains e.g lat <- c(25.1618 , 24.8664, 21.0575, 21.1537, 21.2477, 21.3403, 20.7617, 20.8577, 20.9516, 21.0443) lon <- c(55.7660, 55.6890, 54.7205, 54.2142, 53.7105,53.2053, 54.6470, 54.1419, 53.6389, 53.1348) z <- c( 1758.935, 1758.935, 1751.755, 1751.755, 1751.755, 1751.755, 1751.754, 1751.754,1751.754, 1751.754) I have tried pts = expand.grid(x, y,z) grd.pts = SpatialPixels(SpatialPoints(pts)) > summary(grd.pts) but I get error suggested tolerance minimum: 0.796296 Error in points2grid(points, tolerance, round) : dimension 1 : coordinate intervals are not constant My final objective is that I want this data on 5 x 4 grid , so how I can grid this data ? -- View this message in context: http://r.789695.n4.nabble.com/convert-point-data-to-grid-tp4444361p4444361.html Sent from the R help mailing list archive at Nabble.com.