Published

April 4, 2025 – 07:16:32 (UTC)

Upcoming in this April and May - R-cafe Short course

https://oucru-modelling.github.io/R-cafe-materials/

Welcome to the OUCRU R training course - 2025

Course structure

  • The training will be 09:00 – 17:00 (UTC +7) for everyday
  • There will be a lunch break between 12:30 – 13:30 (UTC +7)
  • Lunch will be provided for in-person attendees

Contributors

  • Prof. Ronald Geskus, Biostatistics group, OUCRU HCM
  • Dr. Thinh Ong Phuc, Mathematical Modeling group, OUCRU HCM
  • Mr. Tuyen Huynh, Mathematical Modeling group, OUCRU HCM
  • Dr. Tran Thai Hung, Biostatistics group, OUCRU HCM
  • Ms. Anh Phan Truong Quynh, Mathematical Modeling group, OUCRU HCM
  • Dr. Hai Ho Bich, Emerging Infections group, OUCRU HCM
  • Dr. Duc Du Hong, Biostatistics group, OUCRU HCM
  • Mr. Manh Nguyen Duc, Mathematical Modeling group, OUCRU HCM
  • Mr. Nguyen Pham Nguyen The, Mathematical Modeling group, OUCRU HCM
  • Dr. Marc Choisy, Mathematical Modeling group, OUCRU HCM
  • Dr. Dung Vu Tien Viet, Biostatistician, OUCRU Hanoi
  • Dr. Trinh Dong Huu Khanh, formerly: Biostatistics group, OUCRU HCM

1 Pre-course setups and requirements

Please follow this handout before joining the course.

2 Course topics

2.1 Introduction to R

🧑‍🏫️ Lead instructors: Ronald and Thinh

Day 1

Day 2

  • Lecture slides
  • Contents:
    • Write simple functions to automate tasks
    • Create visualisations using Base R graphics
    • Understand the R working environment, including file paths and workspace management
    • Find and use R documentation and resources to solve problems on your own
  • No exercises given
  • Example R code scripts - Day 2

2.2 Day 3: Principles of data visualisation

🧑‍🏫️ Lead instructors: Ronald and Thinh

2.3 Day 4: Advanced R topics

🧑‍🏫️ Lead instructors: Tuyen and Hai

  • Lecture slides
  • Contents:
    • Logics with if-else statements and for-loops
    • Piping in R
    • Data manipulation with mutate()
    • Joining dataframes
    • Pivotting dataframes into long and wide formats
    • Vectorisation in R with map()

2.4 Day 5: Using Quarto for reproducible research

🧑‍🏫️ Lead instructor: Thinh

  • Lecture slides
  • Contents:
    • Write papers with reproducible tables and figures using Quarto
    • Generate reports in multiple formats: Word, PDF, slides, web pages…
    • Easily update analyses when new data becomes available
  • Exercises
  • Exercise answer keys

3 Appendix

3.1 Introduction to R and RStudio

Good introduction, with explanatory videos:

3.2 DeepeR into R

3.3 R and statistics

3.4 R Markdown and Quarto

3.5 R GUIs