Use the columns "SI_HARB" to determine when a vessel is on a trip. A trip is defined from when it leaves the harbour till it returns

rb_trip_jepol(
  vessel_id,
  time,
  in_harbour,
  min_dur = 0.5,
  max_dur = 72,
  split_trips = TRUE
)

Arguments

vessel_id

a vector containing vessel id

time

a vector containing timestamp

in_harbour

a binary vector indicating if vessel in harbour (1) or not (0)

min_dur

the minimum trip length (hours)

max_dur

the maximum trip length (hours)

split_trips

If the trip is longer than the maximum hours, it will try to split the trip into two or more trips, if there is long enough intervals between pings

Value

a gps datset