SpatialLines {sp}R Documentation

create objects of class SpatialLines or SpatialLinesDataFrame

Description

create objects of class SpatialLines or SpatialLinesDataFrame from lists of Lines objects and data.frames; extract list od Lines from a SpatialLines object

Usage

 
SpatialLines(LinesList, proj4string = CRS(as.character(NA)))
SpatialLinesDataFrame(sl, data, match.ID = TRUE)
as.SpatialLines.SLDF(SLDF)
getSLlinesSlot(SL)
getSLLinesIDSlots(SL)

Arguments

LinesList list with objects of class Lines-class
proj4string Object of class "CRS"; holding a valid proj4 string
sl, SL object of class SpatialLines-class
data object of class data.frame; the number of rows in data should equal the number of Lines elements in sl
match.ID logical: (default TRUE): match SpatialLines member Lines ID slot values with data frame row names, and re-order the data frame rows if necessary
SLDF SpatialLinesDataFrame object

Value

SpatialLines returns object of class SpatialLines; SpatialLinesDataFrame returns object of class SpatialLinesDataFrame

See Also

SpatialLines-class


[Package sp version 0.7-12 Index]