I am a bit stuck trying to project my GPS data in R.
I am going through the tutorial in the vignette for the R package 'T-LoCoH', and using those instructions to try to projecting my data from WGS84 to UTM37 (the zone for Ethiopia).
My dataset is called 'd', and the co-ordinates are in columns called 'Longitude' and 'Latitude'.
require(sp)
head(d)
Latitude Longitude
1 6.36933 39.84300
2 6.37050 39.84417
3 6.41733 39.83800
4 6.41750 39.83800
5 6.41717 39.83750
6 6.41767 39.83733
d2 <- SpatialPoints(d, proj4string=CRS("+proj=longlat, ellps=WGS84"))
Error in CRS("+proj=longlat \nellps=WGS84") : unknown projection id
Can you let me know what I'm doing wrong please?
Also, if I have more columns in my dataset, how do I specify that I just want to project the data in the 2 columns containing Latitude and Longitude?
I would be very grateful for your help.
Thanks, Lindy