Usage
## S3 method for class 'character':
shapefile(x, stringsAsFactors=FALSE, verbose=FALSE, warnPRJ=TRUE, ...)
## S3 method for class 'Spatial':
shapefile(x, filename='', overwrite=FALSE, ...)
Arguments
x
character (a file name, when reading a shapefile) or Spatial* object (when writing a shapefile)
filename
character. Filename to write a shapefile
overwrite
logical. Overwrite existing shapefile?
verbose
logical. If TRUE
, information about the file is printed
warnPRJ
logical. If TRUE
, a warning is given if there is no .prj file
stringsAsFactors
logical. If TRUE
, strings are converted to factors
...
Additional arguments passed to rgdal functions readOGR or writeOGR