Please set the working directory to your local folder containing the program "~/Final_DATA550-master", use the following command: setwd("~/Group7_DATA550-master").
All code files are located in the 'code' folder. Using 'make' simplifies the process of running all codes and generating the report file. However, if you're unfamiliar with 'make', you can run the files individually starting with '00_read_data.Rmd', followed by '01_make_table1.R', '02_make_plots.R', and finally '03_render_report.R'.
Tables and plots will be generated in the 'output' folder, while the final report will be found in the main folder.
Feel free to skip this section if the scientific background doesn't interest you.
This is a dataset about information regarding covid-19 cases in Mexico (20% of the full data set).
You could download the dataset from https://datos.gob.mx/busca/dataset/informacion-referente-a-casos-covid-19-en-mexico.
code/00_read_data.R
- read raw data from online or
raw_data/folder - save clean data in
derived_data/folder
code/01_make_table1.R
- read clean data from
derived_data/folder - save table 1 in
output/tables/folder
code/02_make_plots.R
- read clean data from
derived_data/folder - save scatter plot in
output/figures/folder
code/03_render_report.R
- render
report.Rmd - save compiled report in main folder
code/report.Rmd
- read data, tables, and figures from respective locations
- display results for production report
- final report
You have the option to include the code in the final report or not.
To exclude the code and provide a cleaner view for collaborators, open the file '05_render_report.R' and setparams: production: TRUEin the YAML title. This will generate a report without displaying the code.
Conversely, to include the code for thorough inspection of the entire report, open the file '05_render_report.R' and setparams: production: FALSEin the YAML title. This will generate a report with the code included.