SPPointstoSPLines: SpatialPoints* to SpatialLines*

Description Usage Arguments Details Value

View source: R/SPPointstoSPLines.R

Description

SPPointstoSPLine creates SpatialLines or SpatialLinesDataFrame from SpatialPoints or SpatialPointsDataFrame.

Usage

1
SPPointstoSPLines(sp = NULL, df = NULL, id = NULL, lineLength = T)

Arguments

sp

SpatialPoints* object.

df

datafame object for creating SpatialLinesDataFrame.

id

ID vector for output line. Optional if dataframe has an 'ID' or 'id' column

lineLength

Logical. Should output dataframe include a column for line length in meters

Details

Required inputs are a SpatialPoints or SpatialPointsDataFrame, and a data.frame with an "id" or "ID" field or id input parameter. Some sort of id must be included. I hope a future version will remove this requirement. I just don't have time now.

Value

SpatialLines* object.


jacpete/jpfxns documentation built on May 16, 2020, 5:02 a.m.