{"id":14066622,"url":"https://github.com/erikaduan/r_tips","last_synced_at":"2025-07-29T23:31:54.509Z","repository":{"id":39906641,"uuid":"152191945","full_name":"erikaduan/r_tips","owner":"erikaduan","description":"R programming tips for data cleaning, data visualisation, statistical modelling and machine learning","archived":false,"fork":false,"pushed_at":"2025-07-10T07:36:47.000Z","size":33186,"stargazers_count":774,"open_issues_count":0,"forks_count":205,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-07-10T15:12:36.014Z","etag":null,"topics":["data-science","data-visualization","machine-learning","r","rstats","statistics"],"latest_commit_sha":null,"homepage":"","language":"R","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/erikaduan.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":"2018-10-09T05:21:07.000Z","updated_at":"2025-07-10T07:40:10.000Z","dependencies_parsed_at":"2024-06-17T13:32:42.796Z","dependency_job_id":"84c64245-b962-41d5-80a1-87f84ca1dee7","html_url":"https://github.com/erikaduan/r_tips","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/erikaduan/r_tips","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erikaduan%2Fr_tips","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erikaduan%2Fr_tips/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erikaduan%2Fr_tips/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erikaduan%2Fr_tips/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erikaduan","download_url":"https://codeload.github.com/erikaduan/r_tips/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erikaduan%2Fr_tips/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267780003,"owners_count":24143201,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["data-science","data-visualization","machine-learning","r","rstats","statistics"],"created_at":"2024-08-13T07:05:11.423Z","updated_at":"2025-07-29T23:31:54.501Z","avatar_url":"https://github.com/erikaduan.png","language":"R","readme":"# R programming tips    \r\n\r\n## 💻 Set up  \r\n+ [How to set up a Positron IDE](./tutorials/s-positron_setup/s-positron_setup.md)   \r\n \r\n## 🎨 Data visualisation  \r\n+ [An introduction to `ggplot2` using volcano plots](./tutorials/dv-volcano_plots_with_ggplot/dv-volcano_plots_with_ggplot.md) (Updated)  \r\n+ [Using `DiagrammeR` to draw flow charts](./tutorials/dv-using_diagrammer/dv-using_diagrammer.md) (Updated)  \r\n\r\n## 📚 Data cleaning\r\n+ [Data cleaning using `data.table` or `tidyverse` (or Python `Pandas`)](./tutorials/dc-data_table_vs_dplyr/dc-data_table_vs_dplyr.md) (Updated)    \r\n+ [Cleaning strings using regular expressions with base R or `stringr`](./tutorials/dc-cleaning_strings/dc-cleaning_strings.md) (Updated)          \r\n\r\n## 🔨 Productionisation  \r\n+ [Creating SQL \u003c\u003e R workflows - Part 1](./tutorials/p-sql_to_r_workflows/p-sql_to_r_workflows_part_1.md) (Updated)  \r\n+ [Creating SQL \u003c\u003e R workflows - Part 2](./tutorials/p-sql_to_r_workflows/p-sql_to_r_workflows_part_2.md) (Updated)  \r\n+ [Automating R Markdown report generation - Part 1](./tutorials/p-automating_rmd_reports/p-automating_rmd_reports_part_1.md) (Updated)  \r\n+ [Automating R Markdown report generation - Part 2](./tutorials/p-automating_rmd_reports/p-automating_rmd_reports_part_2.md) (updated)   \r\n\r\n## 🔢 Statistical modelling   \r\n+ TBC  \r\n\r\n## 🔮 Machine learning   \r\n+ TBC  \r\n\r\n\r\n# Other resources \r\nThe resources below also cover a comprehensive range of practical R tutorials.  \r\n\r\n+ [Statistical Computing](https://36-750.github.io/) by Alex Reinhart and Christopher Genovese  \r\n+ [Data Science Toolkit](https://benkeser.github.io/info550/lectures/) by David Benkeser  \r\n+ [What They Forgot to Teach You About R](https://rstats.wtf/index.html) by Jennifer Bryan and Jim Hester\r\n\r\n\r\n# Tutorial style guide  \r\n\r\nThis repository now contains the following file naming and code style rules.  \r\n\r\n+ Folders are not ordered with a numerical prefix and names are not case sensitive e.g `r_tips\\tutorials\\...` and `r_tips\\figures\\...`    \r\n+ Tutorial subtopics share the same prefix e.g. `r_tips\\tutorials\\dv-...` for data visualisation tutorials and `r_tips\\tutorials\\sm-...` for statistical modelling tutorials     \r\n+ File names use `-` to separate tutorial topics and `_` instead of other white space e.g. `r_tips\\figures\\dv-using_diagrammer-simple_flowchart.svg`  \r\n+ Comments are styled according to the [tidyverse style guide](https://style.tidyverse.org/functions.html?q=comments#comments-1):    \r\n  + The first comment explains the purpose of the code chunk and is styled differently for enhanced readability e.g. `# Code as header --------`     \r\n  + Comments are written in sentence case and only end with a full stop if they contain at least two sentences  \r\n  + Short comments explaining a function argument do not have to be written on a new line  \r\n  + Comments should not be followed by a blank line, unless the comment is a stand-alone paragraph containing in-depth rationale or an alternative solution   \r\n+ To render github documents:    \r\n  + Results are generally suppressed using `results='hide'` and manually entered in a new line beneath the code  \r\n  + Figures are generally outputed using `fig.show='markdown'` and individual figure outputs can then be suppressed using `fig.show='hide'` in a code chunk    \r\n+ Set a margin of 80 characters length in RStudio through `Tools\\Global options --\u003e Code --\u003e Display --\u003e Show margin` and use this margin as the cut-off for code and comments length     \r\n\r\n\r\n# Acknowledgements  \r\n\r\nMany kudos to [Dr Chuanxin Liu](https://github.com/codetrainee), my former PhD student and code editor, for teaching me how to code in R in my past life as an immunologist.   \r\n\r\n\u003cp align=\"center\"\u003e  \r\n\u003cimg src=\"https://github.com/erikaduan/r_tips/blob/master/figures/r_milestones.jpg\"\r\nwidth=\"600\"\u003e\u003c/center\u003e  \r\n\u003c/p\u003e  \r\n","funding_links":[],"categories":["R"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferikaduan%2Fr_tips","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferikaduan%2Fr_tips","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferikaduan%2Fr_tips/lists"}