I am trying to create spatial points variables so R recognises the columns as geographic coordinates. The code and the error message are shown below. I think it could be related to the fact that my coordinates are Easting & Northing Coordinates WGS 84 instead of the usual long/lat? Any help would be greatly appreciated.
elephant.all.sp<-SpatialPoints(elephant[c(GPS.E,GPS.S)])
Error in h(simpleError(msg, call)) : error in evaluating the argument 'obj' in selecting a method for function 'coordinates': undefined columns selected
elephant.all.sp<-SpatialPoints(elephant[c(GPS.S,GPS.E),])
Error in .local(obj, ...) : cannot derive coordinates from non-numeric matrix