Retrieve the number of vertices from a SpatialLines or SpatialPolygons object

Share:

Description

Returns a vector of the same length as the number of lines, with the number of vertices per line or polygon.

Usage

1
n_vertices(l)

Arguments

l

A SpatialLines or SpatalPolygons object

Details

See http://gis.stackexchange.com/questions/58147/ for more information.

Examples

1
2
data(routes_fast)
n_vertices(routes_fast)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.