Skip to content
Prev 21898 / 29559 Next

How to segment or split a spatial line in R

Hi,

With spatstat, you can find the mid point of line segments
http://lojze.lugos.si/~darja/software/r/library/spatstat/html/midpoints.psp.html

But I don't know any package that would split your line into equal segments.

One method would be to arrange equally spaced points along your line with
spatstat::pointsOnLinesthen reconstruct lines from these points.

There may be a better method than mine...

2014-10-23 16:10 GMT+02:00 Manuel Sp?nola <mspinola10 at gmail.com>: