bluebike: bluebike - A Data Package for Bluebike Users

bluebikeR Documentation

bluebike - A Data Package for Bluebike Users

Description

bluebike includes functions and dataset that aids bluebike users to retrieve data and perform data wrangling and visualizations

Details

This package includes data from the Boston Blue Bike trip history data acquired from the Blue Bikes System Data. The users can import all monthly trip history data from 2020 to 2022 into a cleaned data set that can easily be used for data analysis. The package also includes a sample data set that includes 1000 sampled trip history from Feb. 2022, and a full data set that contains information about all available stations. The package also serves as a visualization tool for user to browse for closest stations as well as trip-planning via computing trip distances.

Available functions are:

  • import_month_data
    Takes in numeric year/month values and imports data from Blue Bikes System Data for the specified time

  • station_distance
    Returns stations with distance in ascending order given the user's current location

  • station_radius
    Plots the position of the stations within walking distance (500 m), and present the basic information about the stations via leaflet

  • trip_distance
    Computes the geographical distance between the start and end stations

Available datasets are:

  • trip_history_sample
    A sample of 1000 trip data entries from February 2022

  • station_data
    A dataset that includes identification, position, and other basic information about bluebike stations

Examples

library(dplyr)
# Find most used stations:
stations <- trip_history_sample %>%
  group_by(`start_station_name`) %>%
  summarize(trips_from = n())
head(stations)

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