I'm trying to import a text file into R, specifically the spatstat package. I've loaded a shp file as the window and that worked just fine (displays with plot() ). I can't get the ppp() command to run though. I keep getting this error after running pp <- ppp(X, Y, window=W)
Error in ppp(X, Y, window = W) :
1 out of 904 coordinate values are NA or NaN
I've double-checked the file and neither of the X or Y coords have any blank numbers or even negative numbers.
What should I check to deal with this error? Also, this data is public so I can give it to anybody if they need to have a look at it.