To reproduce my project, please clone this repo and use the fp-runfile.R to run all the scripts. The final result will be a website created using R Markdown.
You can see the rendered webpage for this project here.
Attention: this repo does not contain all the necessary data to reproduce the entire project. You must use the R script in this repo to download the data.
My project seeks to explore the complementary effect of bike-sharing system (BSS) on the public transit ridership in Chicago using, primarily, Divvy and Chicago Transit Authority (CTA) data. Divvy is the BSS local to the Chicago area and CTA provides public transportation in forms of buses and rails.
A brief explanation on each script files:
-
fp-runfile.Rruns all scripts to reproduce my project in order. -
fp-00_download-data.Rdownloads data from Divvy and CTA webpages. -
fp-01_tidy-data1.Rcombines Divvy and CTA data to add proximity variables (from_prox,from_prox_num,to_proxandto_prox_num). -
fp-02_tidy-data2.Rcombines Divvy and CTA data to add multi-modality variables (multimodeandmultimode_num) -
home.Rmdis to render a "Home" html page of the project's website -
result_p.Rmdis to render a "Result: Proximity" html page of the project's website -
result_m.Rmdis to render a "Result: Multi-modality" html page of the project's website
-
tidyversethe usual -
stringrto usestr_c()function -
downloadrto download data -
featherto save and read.featherfiles -
geosphereto calculate distance between geographic locations -
ggmapto obtain Chicago map -
lubridateto handledatetimedata