Learn R Programming

stplanr (version 0.0.2)

line2df: Convert straight SpatialLinesDataFrame to a data.frame with from and to coords

Description

Convert straight SpatialLinesDataFrame to a data.frame with from and to coords

Usage

line2df(l)

Arguments

l
A SpatialLinesDataFrame

Examples

Run this code
data(flowlines) # load demo flowlines dataset
ldf <- line2df(flowlines)

Run the code above in your browser using DataLab