Skip to content
This repository was archived by the owner on Dec 12, 2023. It is now read-only.

Commit 4dc9e1f

Browse files
author
Adam Kaplan
committed
Updated README file
I structured the README file according to the advice in the presentation.
1 parent 67494b8 commit 4dc9e1f

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
1-
PML_Good_coding_practices_example
1+
# PML Workshop on "Good" Coding Practices for Social Scientists
2+
3+
This repository is supposed to mimic a research project containing an analysis, simulation, and report written in RMarkdown.
4+
5+
## Purpose
6+
There are three key takeaways that this repository is hoping to showcase:
7+
1. Annotation: All of the code files (except `analysis/analysis_UGLY.R`) are commented and structured according to the advice given in the workshop.
8+
2. Organization: The whole repository tries to follow the advice as well.
9+
3. Replicability: Finally, by including `renv` into the project, I also hope to show how easy it is to reproduce the project environment with very little space/time.
10+
11+
## Organization
12+
13+
* The `analysis` folder contains the clean-coded `analysis.R` and exemplary ugly-coded `analysis_UGLY.R` files, which run a linear regression of the simulated data and save a regression table and predicted value plots for the report.
14+
* The `data` folder contains the `.csv` simulated data.
15+
* The `report` folder contains all the figures, tables, and `.Rmd` report file, compiling them together into a final PDF.
16+
* The `simulation` folder contains a `.R` script that creates the simulated data used in the analysis.
17+
* The `renv` folder and related files ought not to be modified and are included for replicability purposes. To see how `renv` works check out [https://rstudio.github.io/renv/articles/renv.html](Introduction to renv).

0 commit comments

Comments
 (0)