An open API service indexing awesome lists of open source software.

https://github.com/pizofreude/da-with-r

Data analysis with R data centric programming language
https://github.com/pizofreude/da-with-r

data-analysis r

Last synced: 9 days ago
JSON representation

Data analysis with R data centric programming language

Awesome Lists containing this project

README

          

# Data Analysis with R Programming

Welcome to the Data Analysis with R Programming repository, with R as a data centric programming language.

## ๐Ÿ“ Repository Structure

```
da-with-r/
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ da-with-r.Rproj # RStudio project file
โ”œโ”€โ”€ renv.lock # renv lockfile for package reproducibility
โ”œโ”€โ”€ renv/ # renv local library (auto-created; do not edit manually)
โ”œโ”€โ”€ requirements.txt # (Optional; renv/renv.lock preferred)
โ”œโ”€โ”€ data/
โ”‚ โ”œโ”€โ”€ raw/ # Original, immutable data dumps.
โ”‚ โ””โ”€โ”€ processed/ # Cleaned & processed data ready for analysis.
โ”œโ”€โ”€ notebooks/
โ”‚ โ””โ”€โ”€ exploratory/ # RMarkdown or Jupyter notebooks for EDA.
โ”œโ”€โ”€ scripts/
โ”‚ โ”œโ”€โ”€ data_cleaning.R # Scripts for cleaning datasets.
โ”‚ โ”œโ”€โ”€ analysis.R # Scripts for analysis and visualization.
โ”‚ โ””โ”€โ”€ functions.R # Custom R functions.
โ”œโ”€โ”€ reports/
โ”‚ โ”œโ”€โ”€ figures/ # Generated plots and figures.
โ”‚ โ””โ”€โ”€ final_report.Rmd # Final RMarkdown report.
โ”œโ”€โ”€ docs/ # Project documentation, instructions, etc.
โ”œโ”€โ”€ tests/ # Unit tests for R scripts/functions.
```

## ๐Ÿš€ Getting Started

1. Clone the repository:
```sh
git clone https://github.com/pizofreude/da-with-r.git
cd da-with-r
```

2. Install required R packages:
```r
install.packages(readLines("requirements.txt"))
```

Or, if you use `renv`, run:
```r
renv::restore()
```

3. Download data into `data/raw/` and follow the scripts or notebooks provided.

## ๐Ÿ“ฆ Requirements

See [requirements.txt](./requirements.txt) for a list of required R packages.

## ๐Ÿ“ Usage

- Place your raw data in `data/raw/`
- Run scripts in `scripts/` for cleaning and analysis
- Explore results in `notebooks/exploratory/`
- Find final reports and figures in `reports/`

## ๐Ÿงช Testing

Test your functions using scripts in the `tests/` directory.

## ๐Ÿ™Œ Credits

- [R for Data Science](https://r4ds.hadley.nz/preface-2e.html)