sp (version 0.7-6)

SpatialRings: create objects of class SpatialRings or SpatialRingsDataFrame

Description

create objects of class SpatialRings or SpatialRingsDataFrame from lists of Srings objects and data.frames

Usage

Sring(coords, proj4string=CRS(as.character(NA)), hole=as.logical(NA))
Srings(srl, ID)
SpatialRings(Srl, pO = 1:length(Srl))
SpatialRingsDataFrame(Sr, data)

Arguments

coords
2-column numeric matrix with coordinates; first point (row) should equal last coordinates (row)
proj4string
projection string of class CRS-class
hole
logical value for setting ring as hole or not
srl
list with Sring-class objects
ID
character vector of length one with identifier
Srl
list with objects of class Srings-class
pO
integer vector; plotting order
Sr
object of class SpatialRings-class
data
object of class data.frame; the number of rows in data should equal the number of Srings-class objects in Sr

Value

  • Sring returns an object of class Sring; Srings returns an object of class Srings; SpatialRings returns object of class SpatialRings; SpatialRingsDataFrame returns object of class SpatialRingsDataFrame

See Also

SpatialRings-class, SpatialRingsDataFrame-class