/DAT-204-Final-Project

Data Analysis of Port Authority On TIme Percentage

Primary LanguageRMIT LicenseMIT

DAT-204 Final Project

Data analysis of on time percentage of Pittsburgh Port Authority on time percentage

Purpose

The purpose of this project is to demonstrate data analysis techniques using R


Running the application

Running the application with RStudio

Running the application with Docker

  • Install Docker desktop docker.com/products/docker-desktop/
  • Build the docker container from a terminal. This will take some time.
    • docker build -t final-project-shiny-app .
  • Run the docker container
    • docker run --rm -p 3838:3838 final-project-shiny-app
  • Navigate to localhost:3838 in a web browser to view the application

Running the tests

  • The Tidyverse and CA Tools will need to be installed if not already
    • install.packages("tidyverse")
    • install.packages("caTools")

Running the tests with RStudio

  • Open one of the test files in app/tests/testthat/ in RStudio
  • Click the "Run Tests" button

Running the tests in the R console

  • Set the working directory to the project root located on the file system
    • setwd("~/project")
  • Run the test suite
    • shiny::runTests("app")

References

Location of the Port Authority data

https://catalog.data.gov/dataset/port-authority-monthly-on-time-performance-by-route

Tree

├── Dockerfile
├── LICENSE
├── README.md
├── app
│   ├── R
│   │   ├── aggregate-module.R
│   │   ├── regression-module.R
│   │   └── route-module.R
│   ├── app.R
│   ├── dataset.csv
│   └── tests
│       ├── test_data
│       │   └── dataset.csv
│       ├── testthat
│       │   ├── setup-shinytest2.R
│       │   ├── test-aggregate-module.R
│       │   ├── test-regression-module.R
│       │   └── test-route-module.R
│       └── testthat.R
├── executive_summary.docx
└── table_of_contents.txt