points2line: Convert a series of points, or a matrix of coordinates, into...

View source: R/od-funs.R

points2lineR Documentation

Convert a series of points, or a matrix of coordinates, into a line

Description

This function makes that makes the creation of sf objects with LINESTRING geometries easy.

Usage

points2line(p)

Arguments

p

A spatial (points) obect or matrix representing the coordinates of points.

See Also

Other lines: angle_diff(), geo_toptail(), is_linepoint(), line2df(), line2points(), line_bearing(), line_breakup(), line_midpoint(), line_segment(), line_via(), mats2line(), n_vertices(), onewaygeo(), toptail_buff()

Examples

l_sf <- points2line(cents_sf)
plot(l_sf)

stplanr documentation built on Sept. 15, 2023, 9:07 a.m.