View source: R/shapes_helpers.R
| build_linestrings | R Documentation |
Build linestrings from sequences of points
build_linestrings(points, id_col, x_col = "lon", y_col = "lat")
points |
A |
id_col |
The name of the column that identifies the linestrings. |
x_col, y_col |
The names of the columns with the longitude and the latitude of each point. |
A sfc_LINESTRING in WGS 84, with one linestring per id.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.