Skip to content
Prev 15542 / 29559 Next

SpatialLines from SpatialLinesDataFrame

On Mon, 9 Jul 2012, Lyolya wrote:

            
Where did you get that from? These are all S4 classes, so the coercion 
method is:

as(lines_data_frame, "SpatialLines")

However, you probably do not need to do anything, as the sp.layout 
"sp.lines" function takes objects which can be coerced to SpatialLines, 
including SpatialLinesDataFrame.

Roger