n_segments {stplanr} | R Documentation |
Vectorised function to calculate number of segments given a max segment length
Description
Vectorised function to calculate number of segments given a max segment length
Usage
n_segments(line_length, max_segment_length)
Arguments
line_length |
The length of the line |
max_segment_length |
The maximum length of each segment |
See Also
Other lines:
angle_diff()
,
geo_toptail()
,
is_linepoint()
,
line2df()
,
line2points()
,
line_bearing()
,
line_breakup()
,
line_midpoint()
,
line_segment()
,
line_segment1()
,
line_via()
,
mats2line()
,
n_vertices()
,
onewaygeo()
,
points2line()
,
toptail_buff()
Examples
n_segments(50, 10)
n_segments(50.1, 10)
n_segments(1, 10)
n_segments(1:9, 2)
[Package stplanr version 1.2.1 Index]