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

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

if (FALSE) {

move_move(df, dt_field = "Date_Time")
}