[R-sig-Geo] Coordinates tolerance ERROR

Gafarou AGOUNDE @goundeg@|@rou @end|ng |rom gm@||@com
Wed Feb 10 14:38:26 CET 2021


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..........!

Sent from Mail for Windows 10


	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list