read.shape {spsurvey} | R Documentation |
This function reads either a single shapefile or multiple shapefiles. For multiple shapefiles, all of the shapefiles must be the same type, i.e., point, polyline, or polygon.
read.shape(filename=NULL)
filename |
name of the shapefile without any extension. If filename equals a shapefile name, than that shapefile is read. If filename equals NULL, then all of the shapefiles in the working directory are read. The default is NULL. |
An sp package object containing information in the shapefile. The object is assigned class "SpatialPointsDataFrame", "SpatialLinesDataFrame", or "SpatialPolygonsDataFrame" corresponding to the shapefile type, i.e., point, polyline, or polygon, respectively. For further information regarding the output object, see documentation for the sp package.
Tom Kincaid Kincaid.Tom@epa.gov
ESRI Shapefile Technical Description: http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf
## Not run: read.shape("my.shapefile") ## End(Not run)