Re: [R] Error opening SHP file (maptools)

2008-03-11 Thread Paul Hiemstra
[EMAIL PROTECTED] schreef: I am having difficulty loading a points shapefile (1600 records) I generated from ArcGIS as a PointsSpatialDataFrame using the maptools readShapePoints function. library(maptools) surveypts - readShapePoints(system.file(C:/temp/survey.shp, package=maptools)[1]

Re: [R] Error opening SHP file (maptools)

2008-03-11 Thread Don MacQueen
The help page for readShapePoints says that the file name that you supply should not include the extension. The system.file part of the example in the help page is only to use the example file that came with the package. Since you want to open your own file you omit the system.file() bit. Do