n_vertices: Retrieve the number of vertices in sf objects

View source: R/linefuns.R

n_verticesR Documentation

Retrieve the number of vertices in sf objects

Description

Returns a vector of the same length as the number of sf objects.

Usage

n_vertices(l)

Arguments

l

An sf object with LINESTRING geometry

See Also

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

Examples

l = routes_fast_sf
n_vertices(l)
n_vertices(zones_sf)

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