Description Usage Arguments Details Value
View source: R/SPPointstoSPLines.R
SPPointstoSPLine
creates SpatialLines or SpatialLinesDataFrame from
SpatialPoints or SpatialPointsDataFrame.
1 | SPPointstoSPLines(sp = NULL, df = NULL, id = NULL, lineLength = T)
|
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 |
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.
SpatialLines* object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.