cleanFerries: Retrieve latest ferry position

Description Usage Arguments Value

View source: R/basics.R

Description

Ferries have multiple entries in the live position feed. There is a note about this on the FAQ. This function filters out the most recent entry by pulling apart the trip_id column.

Usage

1
cleanFerries(pos_DF)

Arguments

pos_DF

a data frame created by getPositions

Value

a data frame with one row per vehicle


richardbeare/tRainspotting documentation built on Aug. 28, 2020, 2:36 a.m.