calc_line_direction: Function to get the heading angle between all consecutive...

Description Usage Arguments Examples

View source: R/trial_geom.R

Description

This function take a point data frame of class 'sf' and return the heading angle between the consecutive points. In other words, the result is a list of the direction of travel for each point:

Usage

1

Arguments

df

data frame of class 'sf'

Examples

1
2
3
4
5
6
7
library(sf)
points <- read_sf("data/Points.gpkg")
calc_line_direction(points)
## Not run: 


## End(Not run)

RodrigoAgronomia/PAR documentation built on Jan. 19, 2020, 8:51 p.m.