SpatialRings {sp} | R Documentation |
create objects of class SpatialRings
or SpatialRingsDataFrame
from
lists of Srings
objects and data.frame
s
Sring(coords, proj4string=CRS(as.character(NA)), hole=as.logical(NA)) Srings(srl, ID) SpatialRings(Srl, pO = 1:length(Srl)) SpatialRingsDataFrame(Sr, data, match.ID = TRUE)
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 |
match.ID |
logical: (default TRUE): match SpatialRings member Srings ID slot values with data frame row names, and re-order the data frame rows if necessary |
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
SpatialRings-class, SpatialRingsDataFrame-class