n_segments: Vectorised function to calculate number of segments given a...

View source: R/linefuns.R

n_segmentsR 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_segment1(), line_segment(), 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)

ropensci/stplanr documentation built on March 15, 2024, 4:32 a.m.