StartToEnd: A function to calculate the Vector Distance for the trip from...

Description Usage Arguments Value Examples

Description

Based on a certain trip specified, this function will be able to calculate the Vector Distance for the trip from start to end.

Usage

1
StartToEnd(trip)

Arguments

trip

a dataframe with x and y columns representing the locations of the driver at each second of the trip

Value

It will return the travel distance in meters.

Examples

1
2
# Vector Distance of a certain trip
 StartToEnd(trip=sampleTrip)

webscale/Telematics documentation built on May 4, 2019, 2:05 a.m.