df2lines: Dataframe to SpatialLines

Description Usage Arguments Details Value Author(s)

View source: R/df2lines.R

Description

Converts a dataframe of IDs and coordinates into a SpatialLines object of the package "sp".

Usage

1
df2lines(linedf)

Arguments

linedf

a data frame with the following columns: id = generic ids of the lines, fx = coordinates x of the first point of the line, fy = coordinates y of the first point of the line, tx = coordinates x of the second point of the line, tx = coordinates y of the second point of the line.

Details

df2lines

Value

SpatialLinesDataFrame

Author(s)

Duccio Aiazzi


bmsasilva/roadHotspots documentation built on Feb. 3, 2022, 4:50 a.m.