Learn R Programming

geozoning (version 1.0.0)

readS: readS returns coords, ranges for x and y of a shapefile

Description

readS returns coords, ranges for x and y of a shapefile

Usage

readS(file, dir)

Arguments

file

file name

dir

directory

Value

a list with components SpatialPolygonsDataFrame, ranges for x and y

Details

reads a polygon shp file in a directory and extracts coordinates and x and y ranges.

Examples

Run this code
# NOT RUN {
#  readS was used to create the shape1 object in geozoning package
z=readS("Field_8_zones.shp",dir="../data/")
plot(z$sp)
# }

Run the code above in your browser using DataLab