trip_distance: Compute trip distance for a specific dataset

View source: R/trip_distance.R

trip_distanceR Documentation

Compute trip distance for a specific dataset

Description

This function computes the geographical distance between the start and end stations for trips in a given dataset

Usage

trip_distance(data)

Arguments

data

trip data pulled from the Blue Bike System data

Value

a tbl_df object with an additional distance column

Examples

# Calculate distance for sample trip data
sample_distance <- trip_distance(trip_history_sample)$distance

zyang2k/bluebike documentation built on May 7, 2022, 2:33 p.m.