points2line_trajectory: Point to Line Conversion in List

Description Usage Arguments Value Examples

View source: R/matchGPXtoNearbyOSM.R

Description

Convert a list of observations of Points to a list of observations with lines between points. The conversion adds the parameter speed.

Usage

1

Arguments

p

points

Value

The points of p merged to linestrings starting with p[i-1] and ending with p[i].

Examples

1
2
3
4
 ## Not run: 
points2line_trajectory(c(st_point(c(0,1)), st_point(c(1,2)), st_point(c(4,1)), st_point(c(4,2))))

## End(Not run)

KathHv/ross documentation built on Dec. 18, 2021, 2:42 a.m.