R/linefuns.R
n_vertices.RdReturns a vector of the same length as the number of lines, with the number of vertices per line or polygon.
n_vertices(l)
| l | A SpatialLines or SpatalPolygons object |
|---|
See https://gis.stackexchange.com/questions/58147/ for more information.
Other lines:
angle_diff(),
geo_toptail(),
is_linepoint(),
line2df(),
line2points(),
line_bearing(),
line_breakup(),
line_match(),
line_midpoint(),
line_sample(),
line_segment(),
line_via(),
mats2line(),
n_sample_length(),
onewaygeo(),
points2line(),
toptail_buff(),
toptailgs(),
update_line_geometry()
n_vertices(routes_fast)#> [1] 2 53 97 37 41 73 104 53 2 44 59 79 97 121 98 65 2 64 84 #> [20] 114 131 44 59 55 2 22 52 64 46 79 75 22 2 27 65 70 87 105 #> [39] 52 27 2 46 114 126 130 69 65 46 2n_vertices(routes_fast_sf)#> [1] 2 53 97 37 41 73 104 53 2 44 59 79 97 121 98 65 2 64 84 #> [20] 114 131 44 59 55 2 22 52 64 46 79 75 22 2 27 65 70 87 105 #> [39] 52 27 2 46 114 126 130 69 65 46 2