
Convert a series of points, or a matrix of coordinates, into a line
Source:R/od-funs.R
points2line.RdThis function makes that makes the creation of sf
objects with LINESTRING geometries easy.
Examples
l_sf <- points2line(cents_sf)
plot(l_sf)