View source: R/linestring_endpoints.R
st_linestring_to_sf_linestring_endpoints | R Documentation |
Convenience function over st_linestring_add_endpoints and st_sf_linestring_from_points Takes a potentially complicated linestring and converts it into a simple linestring based only on the *endpoints* of the initial linestring (keeps the geometry as LINESTRING)
st_linestring_to_sf_linestring_endpoints(shp_segments)
shp_segments |
shp_segments_endpoints
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.