Learn R Programming

stplanr (version 0.1.4)

n_vertices: Retrieve the number of vertices from a SpatialLines or SpatialPolygons object

Description

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

Usage

n_vertices(l)

Arguments

l
A SpatialLines or SpatalPolygons object

Details

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

Examples

Run this code
n_vertices(routes_fast)

Run the code above in your browser using DataLab