How to convert NAD 83 coordinates to latitude and longitude with rgdal package?
问题 I have coordinates, all of which should be located in DC, but I cannot figure out how to convert them from NAD 83 to latitude and longitude in R. I'm using the spTransform() function in the rgdal package and get an error about non-conformant data. library(rgdal) nad83_coords <- data.frame(x=c(396842.6, 397886.9, 398315.5, 398154.3, 398010.3), y=c(140887.1, 139847.0, 138743.9, 139534.5, 138697.3)) coordinates(nad83_coords) <- c('x', 'y') proj4string(nad83_coords) <- CRS("+init=epsg:4269")