Try
library(rgdal)
data.shape <- readOGR(dsn="C:/Users/study/Desktop", layer="data")
It's sort of confusing since shapefiles don't have layers, but GDAL allows
the dsn to be a folder of shapefiles, and to treat individual shapefiles as
layers within.
That makes it consistent with other vector fo
Dear all,
I have a shape file in my desktop. I could not read this file in R. The
following are my codes, can somebody tell me how to do? None of these are
working..
require(maptools)
library(rgdal)
##my working directory is "C:/Users/study/Desktop".
##name of my shape file is data.
shape <- re