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")
Error in `proj4string<-`(`*tmp*`, value = <S4 object of class "CRS">) :
Geographical CRS given to non-conformant data: 398315.5 140887.1
Other combinations of proj4strings yield the same error. I believe the error is because the coordinates are too large, but I'm not sure why that would be. The documentation for the coordinates is below:
Values are in the Maryland State Plane meters NAD 83 map projection.
I'm very new to mapping and projections, and any help is appreciated.