{"id":21557781,"url":"https://github.com/dr-eberle-zentrum/introduction-to-programming-with-r","last_synced_at":"2025-04-10T10:41:03.134Z","repository":{"id":157101898,"uuid":"344145758","full_name":"Dr-Eberle-Zentrum/Introduction-to-programming-with-R","owner":"Dr-Eberle-Zentrum","description":"Tutorial material for beginners to learn the basic principles of programming using the programming language R with a focus on data manipulation and visualization.","archived":false,"fork":false,"pushed_at":"2025-04-08T10:12:40.000Z","size":27583,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-08T11:22:56.889Z","etag":null,"topics":["beginner","data","programming","r","teaching-materials","tutorial","visualization"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc-by-sa-4.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Dr-Eberle-Zentrum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-03T14:01:18.000Z","updated_at":"2025-04-08T10:12:44.000Z","dependencies_parsed_at":"2023-09-23T03:28:14.573Z","dependency_job_id":"84e2b9c6-5810-4c87-b995-713427e50db1","html_url":"https://github.com/Dr-Eberle-Zentrum/Introduction-to-programming-with-R","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dr-Eberle-Zentrum%2FIntroduction-to-programming-with-R","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dr-Eberle-Zentrum%2FIntroduction-to-programming-with-R/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dr-Eberle-Zentrum%2FIntroduction-to-programming-with-R/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dr-Eberle-Zentrum%2FIntroduction-to-programming-with-R/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dr-Eberle-Zentrum","download_url":"https://codeload.github.com/Dr-Eberle-Zentrum/Introduction-to-programming-with-R/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248199273,"owners_count":21063649,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["beginner","data","programming","r","teaching-materials","tutorial","visualization"],"created_at":"2024-11-24T08:13:12.637Z","updated_at":"2025-04-10T10:41:03.111Z","avatar_url":"https://github.com/Dr-Eberle-Zentrum.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CC BY-SA 4.0][cc-by-sa-shield]][cc-by-sa]\r\n\r\n# Introduction to programming with R\r\n\r\nThis repository holds an R package, which covers tutorials for a basic introduction to programming and data processing with R.\r\nIt can be and is used both as self-study material or for tutored e-learning courses.\r\n\r\n# Available tutorials in recommended order\r\n\r\nThe tutorials are based on and extending chapters of the following text books\r\n\r\n- [Statistical Inference via Data Science: A ModernDive into R and the Tidyverse](https://moderndive.com/) by Chester Ismay and Albert Y. Kim\r\n- [R for Data Science](https://r4ds.had.co.nz/) by Hadley Wickham and Garrett Grolemund\r\n\r\nWe thus recommend the following order\r\n\r\n- To get started\r\n  - R, RStudio, coding, packages = [Chapter 1 - 1.3.3 of ModernDive](https://moderndive.com/1-getting-started.html)\r\n  - `first-steps` tutorial\r\n  - The grammar of graphics = [Chapter 2.1 of ModernDive](https://moderndive.com/2-viz.html)\r\n  - `ggplot-basics` tutorial\r\n- Data processing with the `dplyr` package\r\n  - Workflow basics = [Chapter 4 of R4DS](https://r4ds.had.co.nz/workflow-basics.html)\r\n  - `data-tibbles` tutorial\r\n  - `dplyr-filter` tutorial\r\n  - `dplyr-arrange-select` tutorial\r\n  - `dplyr-mutate` tutorial\r\n  - `dplyr-groupby-summarize` tutorial\r\n  - `dplyr-sundries` tutorial\r\n- Data import/export\r\n  - `data-io` tutorial\r\n  - `data-tidy` tutorial\r\n- String processing\r\n  - `stringr-regex` tutorial\r\n  - `stringr-processing` tutorial\r\n- Programming\r\n  - `coding-basics` tutorial\r\n  \r\nThe tutorials are summarized in our [Aggregated Cheatsheet](https://htmlpreview.github.io/?https://raw.githubusercontent.com/Dr-Eberle-Zentrum/Introduction-to-programming-with-R/master/cheatsheet.html).\r\n\r\nSee below for instructions how to [install](#requirements-and-local-installation-of-tutorials) \r\nand [run the tutorials](#running-the-tutorials).\r\n\r\n# Requirements and local installation of tutorials\r\n\r\nIn order to run the tutorials you need to\r\n\r\n- install R (and RStudio) e.g. following this [Tutorial Setting Up R](https://learnr-examples.shinyapps.io/ex-setup-r/)\r\n- within R, you need to install the following packages\r\n  - `devtools` - for local tutorial installation of our package from github\r\n  - `learnr` - to run the tutorials\r\n  - `tidyverse` - for the packages the tutorials are about\r\n  - e.g. using `install.packages( c(\"devtools\",\"learnr\",\"tidyverse\") )`\r\n  \r\nAfterwards, you can **install or update** our tutorial package from \r\ngithub via the following code.\r\n\r\n```R\r\n# load packages\r\nlibrary(devtools)\r\nlibrary(learnr)\r\n# install package from source\r\ndevtools::install_github(\"Dr-Eberle-Zentrum/Introduction-to-programming-with-R\")\r\n```\r\n\r\nUsing `packageVersion(\"deztutr\")`, you can check the installed version, which is in YEAR-MONTH-DAY format. The recent version is listed in the [DESCRIPTION](DESCRIPTION) file.\r\n\r\nNote, some tutorials are based on additional data sets, so you better also install the following packages\r\n\r\n- `nycflights13`\r\n\r\nby simply copying the following code into your console.\r\n\r\n```R\r\ninstall.packages(\"nycflights13\")\r\n```\r\n\r\n\r\n# Running the tutorials\r\n\r\nBefore running the tutorials, you have to load the required packages.\r\n\r\n```R\r\nlibrary(learnr) # needed to run the tutorials\r\nlibrary(deztutr) # our package that contains the tutorials\r\nlibrary(tidyverse) # the topic the tutorials are about\r\n```\r\n\r\nAfterwards, you can list the available tutorials via \r\n\r\n```R\r\navailable_tutorials(\"deztutr\")\r\n```\r\n\r\nor run a specific tutorial using\r\n\r\n```R\r\nlearnr::run_tutorial(\"first-steps\", package = \"deztutr\")\r\n```\r\n\r\nSince the tutorial is started within your web browser, you might have to stop the session when you are done with studying the tutorial. \r\nThis can be done with the red (STOP)-button in the RStudio \"R Markdown\" pane (upper right corner).\r\n\r\n# License\r\n\r\nThis work by Martin Raden is licensed under a\r\n[Creative Commons Attribution-ShareAlike 4.0 International License][cc-by-sa].\r\n\r\n[![CC BY-SA 4.0][cc-by-sa-image]][cc-by-sa]\r\n\r\n[cc-by-sa]: http://creativecommons.org/licenses/by-sa/4.0/\r\n[cc-by-sa-image]: https://licensebuttons.net/l/by-sa/4.0/88x31.png\r\n[cc-by-sa-shield]: https://img.shields.io/badge/License-CC%20BY--SA%204.0-lightgrey.svg\r\n\r\nYou are more than welcome to contribute and extend!\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdr-eberle-zentrum%2Fintroduction-to-programming-with-r","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdr-eberle-zentrum%2Fintroduction-to-programming-with-r","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdr-eberle-zentrum%2Fintroduction-to-programming-with-r/lists"}