longest_distance: Longest distance

Description Usage Arguments Value

View source: R/fct_longest_distance.R

Description

Calculate longest distance between consecutive logs of ship's position

Usage

1

Arguments

data

Data.frame with vessel data. Should contain at least columns:

Lon

Numeric, longitude

Lat

Numeric, latitude

Datetime

Datetime

Value

Two row data frame with observation for which distance was the greatest and next consecutive row. 'Dist' and 'Type' columns are appended, first one yielding calculation of distance, second one indicating whether it is starting or ending point


jakubsob/ships documentation built on Jan. 11, 2021, 12:27 a.m.