Skip to contents

Author: Auriane Virgili

Usage

CreateSegment(coords, from, to)

CreateSegments(coords, length = 0, n.parts = 0)

MergeLast(lst)

SegmentSpatialLines(sl, length = 0, n.parts = 0, merge.last = FALSE)

Merge(segments)

Arguments

coords

numeric

from

numeric

to

numeric

length

length to segmentize

n.parts

number of parts to cut the transect into

lst

list

sl

a spatial line object

merge.last

should the last bit be merged with the previous one?

segments

a sf object

Value

a sf object