move: Calculate speed and azimuth of series of latitude and...

View source: R/move.R

moveR Documentation

Calculate speed and azimuth of series of latitude and longitude coordinates

Description

move() calculates the speed and azimuth (bearing) of consecutive coordinates.

Usage

move(df, dt_field = NULL, jitter_coords = FALSE)

Arguments

df

a data frame containing latitude (lat), longitude (lon), and a datetime.

dt_field

character; name of datetime field.

jitter_coords

logical; if TRUE, coordinates are jittered by a negligible amount (~1 cm). Jittering is recommended if the input data frame contains sequentially duplicated coordinates. Eliminating repeated coordinates is necessary to optimize the circleclust() algorithm.

Value

a data frame with columns for speed (m/s) and azimuth (degrees).

Examples

## Not run: 

move_move(df, dt_field = "Date_Time")

## End(Not run)

wolfeclw/circleclust documentation built on Aug. 13, 2024, 3:33 a.m.