Git Product home page Git Product logo

shopify-ds-intern-challenge's Introduction

Shopify Summer 2022 Data Science Internship Challenge

Prepared by Nathan Chan

Please visit this link for the full report:

https://nathankchan.github.io/shopify-ds-intern-challenge/Analysis.html

For an interactive GUI to examine your own data, please visit this link:

https://nathankchan.shinyapps.io/Histogram-Density_Plot_Viewer

To visit this project on github, please visit this link:

https://github.com/nathankchan/shopify-ds-intern-challenge


Description

This project contains three parts:

  1. an R Markdown document (already knit to HTML, see here);
  2. an R Shiny app ("program", already deployed to shinyapps.io, see here) that provides an interactive GUI that produces histogram-density plots and reports key metrics; and
  3. an R script that saves two files to ./output:
    • a .csv file of summary statistics; and
    • an interactive HTML histogram-density plot.

It is strongly recommended that you view the report (option 1).

The report contains my full thought process, interactive visualizations, and complete answers for Questions 1 and 2.

To run the Shiny app online (option 2), visit the website and upload your Excel file.

To run the Shiny app or R script locally (options 2 or 3), download the repository and run the following command in your terminal. Note that you must have R installed for the app/script to execute.


cd /path/to/repository

# To run the Shiny app
Rscript app.R

# To run the R script (see script for usage information and optional arguments)
Rscript run.R

shopify-ds-intern-challenge's People

Contributors

nathankchan avatar

Watchers

 avatar

shopify-ds-intern-challenge's Issues

02_analysis.R produces extra dependency files after saving widget

This is a known issue (see here) and is arguably outside the scope of this project.

The fix is pretty simple. In 02_analysis.R, add in...

unlink(paste0(getwd(), "/output/plot_files"), recursive = TRUE)

However, I'm hesitate to actually implement this. Ultimately, the above solution is a band-aid fix, and this should be fixed in htmlwidgets itself.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.