I was trying to make a raster from an dataset (https://www.dropbox.com/s/jsm1x06lnzfbqty/data.csv?dl=0) code:
inter1= read.table("c:/data.csv", header=TRUE)
#convert to spatial points
coordinates(inter1) = ~long + lat
#gridify your set of points
gridded(inter1) <- TRUE
#convert to raster
r <- raster(inter1)
#plot
plot(r)
I get as an error:
suggested tolerance minimum: 0.0487805
Error in points2grid(points, tolerance, round) :
dimension 1 : coordinate intervals are not constant
What is the problem?