Learn R Programming

sorvi (version 0.4.05)

ReadShape: Retrieve shape objects by their file names.

Description

Takes list of shape file names (or IDs without the .shp ending). Returns a corresponding list of shape objects from the working directory, or from the directory path specified as part of the file name.

Usage

ReadShape(files, proj4string = NA)

Arguments

files
vector of input files
proj4string
projection information

Value

  • shape object, or a list of shape objects, depending on the length of function argument (a single file name vs. multiple file names)

References

See citation("sorvi")

Examples

Run this code
# ReadShape(files)

Run the code above in your browser using DataLab