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_segment1(), line_segment(), line_via(), mats2line(), n_segments(), onewaygeo(), points2line(), toptail_buff()

Examples

l <- routes_fast_sf
n_vertices(l)
n_vertices(zones_sf)

ropensci/stplanr documentation built on March 15, 2024, 4:32 a.m.