This project aims to course materials that I (Runquan Yu) had the reference and created while serving as an R language course instructor during my residency at the college at the University of Macau. The time period covered is from February 20th, 2021 to May 2nd, 2023.
R is a widely used and robust tool that offers many benefits. The ability to perform statistical analyses and generate visually compelling plots is highly desirable and can be valuable in various settings beyond academia, including government or private companies. Regardless of your career path after graduation, possessing these skills can be advantageous.
You can find the scripts and reading materials used in this sample materials. Please don't hesitate to create issues or contact Runquan Yu ([email protected] or [email protected]) if you have any questions about the codes.
Data (CSV, xlsx which are suggested), R, R-studio, and Basic knowledge of statistics.
(1) As for R: You can install it in: https://www.r-project.org/ (Not suitble for CN-Mainland users).
(2) As for R-studio: You can find here: https://posit.co/download/rstudio-desktop/
(1) put "install.packages ("tidyverse")" to install
(2) put "library (tidyverse)" to activate
Most of the time you only need to change the data path to your own one. Make sure to install all packages before you start.
Wickham, H., & Grolemund, G. (2016). R for data science: import, tidy, transform, visualize, and model data. " O'Reilly Media, Inc.".
├── 1 Weclome
│ ├── Introduction
├── 2. Explore
│ ├── Introduction
│ ├── Data Visualization
| ├── Workflow: basics
| ├── Data transformation
| ├── Workflow: scripts
| ├── Exploratory Data Analysis
│ └── Workflow: projects
├── 3. Wrangle
│ ├── Introduction
│ ├── Tibbles
| ├── Data import
| ├── Tidy data
| ├── Relational data
| ├── Strings
| ├── Factors
│ └── Dates and times
├── 4. Program
│ ├── Introduction
│ ├── Pipes
| ├── Functions
| ├── Vectors
│ └── Iteration
├── 5. Model
│ ├── Introduction
│ ├── Model basics
| ├── Model building
│ └── Many models
├── 6. Communicate
│ ├── Introduction
│ ├── R Markdown
| ├── Graphics for communication
| ├── R Markdown formats
│ └── R Markdown workflows
└── README.md
Thanks to the Vice Rector of the Student Affairs Office (VRSAO) for providing funding and classes.