R scripts for Citi Bike data
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
flow
neighborhoods
.gitignore
LICENSE
README.md
flow.R
import.R
neighborhoods.R

README.md

R scripts for Citi Bike data

This repository contains scripts to work with publicly available data for Citi Bikes in New York City. There is an associated blog post here.

import.R

Fetch available data files for individual rides and combine them into a single file rides.rds. If the file is already present, only new data is fetched and appended. Also fetches and saves station information from the JSON feed.

flow.R

Visualize how bikes flow between different parts of the city during the day.

neighborhoods.R

K-means clustering based on the average number of bikes arriving to and leaving from each station every hour, calculated separately for weekdays and weekends.