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)Name of the shapefile without any extension. If filename equals a shapefile name, then 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.
readShapeFileC function to read a single shapefile or multiple shapefiles
SpatialPointssp package function to create an object of class SpatialPoints
SpatialPointsDataFramefunction to create an object of class SpatialPointsDataFrame
shape2spListfunction to create an object of class Lines for a lines shapefile or class Polygons for a polygons shapefile
SpatialLinessp package function to create an object of class SpatialLines
SpatialLinesDataFramesp package function to create an object of class SpatialLinesDataFrame
SpatialPolygonssp package function to create an object of class SpatialPolygons
SpatialPolygonsDataFramesp package function to create an object of class SpatialPolygonsDataFrame