Hi,
I am facing this error when running this code bellow;
suggested tolerance minimum: 0.662921
Error in points2grid(points, tolerance, round) :
dimension 1: coordinate intervals are not constant
What does this error mean and how to fix it?
In fact, the Locations.csv file contains just two columns respectively X and Y in decimal degrees (e.g. X=2.07656 Y=7.08511).
The error occurs when executing the last row.
Here is the code:
ForMapping <- read.csv("Locations.csv")
str(ForMapping)
length(PredictedAbundance) == length(ForMapping$X)
ForMapping$PredictedAbundance <- PredictedAbundance
coordinates(ForMapping) <- ~ X + Y
gridded(ForMapping) <- TRUE
Your help will be very appreciated..........!