mt_segments | R Documentation |
LINESTRING
for each track segmentCreates a LINESTRING
for each segment between consecutive points within a track.
mt_segments(x)
x |
A |
The last location of each track is formed by a POINT
as no segment can be formed.
A sfc
object containing LINESTRING
s for each segment of a trajectory.
mt_track_lines()
For transforming the full tracks into one LINESTRING
.
track <- mt_sim_brownian_motion()
mt_segments(track)
## adding the segments as an attribute to the move2 object
track$segments <- mt_segments(track)
track
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.