Learn R Programming

tmap (version 0.7)

split_lines_equal: Split lines in segments of equal length

Description

Split lines in segments of equal length. (Experimental, see note)

Usage

split_lines_equal(shp, dist = 1000, include.last = FALSE)

Arguments

shp
The shape object that contains the lines, i.e. SpatialLinesDataFrame
dist
Distance per segment
include.last
Include last point, even though the distance is less than dist from the previous point?

Value