Skip to content

Commit

Permalink
Merge pull request #60 from gilbertlei/master
Browse files Browse the repository at this point in the history
final update
  • Loading branch information
gilbertlei authored Dec 9, 2018
2 parents f46df51 + 6f41392 commit e832fe4
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 19 deletions.
10 changes: 6 additions & 4 deletions doc/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Documents

This folder contains all the documents, including:
This folder contains documents listed in below, including:

+ [proposal](./proposal.md)
- An introduction of the project that proposes the project objective, the analysis plan and the summary presentation.
- This is the proposal of this project. It contains the project objective, the analysis plan and the expected summary presentation.

+ [report RMarkdown](./Report.Rmd)
- Project report in R Markdown format.

+ [report Markdown](./report.md)
- An final report of the project that summaries the project introduction, the exploratory data analysis, the analysis process and the final results.
- A final report rendered from the above Rmd file. It contains the project introduction, the exploratory data analysis, the analysis process, the analysis conclusion, and the limitations and future directions.
13 changes: 7 additions & 6 deletions run_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,18 @@
## Usage: bash run_all.sh
##################################################

# step 1
# step 1, clean data and generate tidy data set
Rscript src/01_clean_data.R data/BlackFriday.csv data/BlackFriday_tidy.csv

# step 2
# step 2, run exploratory data analysis and save three plots
Rscript src/02_visualize_data.R data/BlackFriday_tidy.csv imgs

# step 3
# step 3, run CLT-based estimation and hypothesis test,
# save analysis results into two csv files
Rscript src/03_analyze_data.R data/BlackFriday_tidy.csv results

# step 4
# step 4, make plots to visualize analysis results
Rscript src/04_generate_final_result.R results imgs

# step 5 make report
Rscript -e "rmarkdown::render('./doc/Report.Rmd', 'github_document')"
# step 5, Render R Markdown file to generate project report
Rscript -e "rmarkdown::render('./doc/Report.Rmd', 'github_document')"
18 changes: 9 additions & 9 deletions test/README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# Test

This code contains some unit tests for the scripts in src/ folder.
This folder contains some unit tests for the scripts in src/ folder.

1. [01_unit_test](01_unit_test.R)
+ Ensure that a dataframe is provided where the columns are variables for the project.
+ Ensure that a dataframe is provided where the columns are variables for the project.

2. [02_unit_test](02_unit_test.R)
+ Provides unit tests for functionality of 02_visualize_data.R

3. [02_unit_test](03_unit_test.R)
+ Provides unit tests for functionality of 03_analyze_data.R
+ Provides unit tests for functionality of 03_analyze_data.R

4. [04_unit_test](04_unit_test.R)
+ Provides unit tests for functionality of 04_generate_final_result.R

# Usage

To run the unit test, please open `Rstudio` and set the current working directory to the root directory of the project. Then, you are allowed to run all the unit tests.
# Usage

To run the unit test, please open `Rstudio` and set the current working directory to the root directory of the project. Then, you are allowed to run all the unit tests.

0 comments on commit e832fe4

Please sign in to comment.