/comento

Lecture materials for R personal training

comento

Lecture materials for R personal training

Goal

To provide understandable, useful and practical lectures and codes, and help students become a R lover.

Curriculum

R lectures for (under)graduate students or professionals trying to learn R programming languages in healthcare domain.

Week 1

R basics

  • Data types: numeric, character, factor, logical
  • Data structures: vector, matrix, list, data.frame
  • Data.frame grammars
  • Functions:
    • data.frame related functions
    • aggregation functions: min(), max(), mean(), sd(), median()...

Week 2

data.table basics

  • i: handling rows
  • j: handling columns (create, update, delete)
  • by: aggregate group by

Week 3

data.table advanced

  • Special symbols: .SD, .SDcols
  • Handling multiple columns: lapply()
  • Join two data.frame: merge()
  • Pivot: melt() & dcast()

Week 4

Statistics in R basics

  • Statistical hypothesis test: T-test, ANOVA, Chi-sqaure
  • Linear regression
  • Logistic regression
  • Survival analysis

Week 5

Data handling with useful packages

  • stringr: Regular expressions
  • gtsummary: Creating easy-to-copy&paste tables

Week 6

Data visualization

  • ggplot2: grammars and structure
  • Type of plots: barplot, histogram, density plot, boxplot, scatter plot, line plot...
  • packages for colors and themes