BIOSTAT 213: Introduction to Programming for Health Data Science in R (Summer 2021)
Section outline
-
-
This is the online book created for Biostat 213/214, which will be updated regularly.
-
RStudio Cloud includes a free option and allows you to use the complete RStudio IDE with the latest version of R on your browser.
Please only use this as a final resort if it is impossible to install RStudio Desktop - but you shouldn't have much trouble installing RStudio on your system.
-
Introduction to Programming, R, and RStudio
- Thinking like a programmer
- The R language for statistical computing
- Integrated Development Environment: Getting started with RStudio
- The R package ecosystems: CRAN, Bioconductor, GitHub
- Overview of the online PDSR book
Faculty: Stathis Gennatas
Location: GEN-N114
-
2021 Stream/Recording URL
-
R - Math & Logical operations; Data types & Structures
- Basic math and logical operations
- Data Types: Logical, integer, double, character
- `:`, rnorm(), seq(), sample()
- Data Structures: Vectors, factors, matrices, lists, data frames
Faculty: Stathis Gennatas
Lecture (Access restricted to registered students): GEN-N114
- Basic math and logical operations
-
Data query operations
- Indexing data structures
- Integer vs. logical indexing
- Filter
- Select
- Group by
Faculty: Stathis Gennatas
Lecture (Access restricted to registered students): GEN-N114
-
2021 Stream/Recording URL
-
Data Input/Output & transformations; Working with categorical data
- Read and write data from/to CSV, RDS, RData, xlsx
- Inspect & transform data types
- Using factors for categorical data
Faculty: Stathis Gennatas
Lecture (Access restricted to registered students): GEN-N114
-
Vectorization & Control Flow
- Vectorized operations
- if / then / else
- for loops
- while loops
Faculty: Stathis Gennatas
! Please note updated location:
Lecture (Access restricted to registered students) MH-1400 -
Summarizing data
- Column and row operations
- Group and summarize with aggregate
- 213 course review: bring questions on any topic covered so far
Faculty: Stathis Gennatas
! Please note updated location:
Lecture (Access restricted to registered students) MH-1400 -
Visualization I
- Boxplots
- Histograms
- Barplots
- Scatter plots
- Heatmaps
Faculty: Stathis Gennatas
Lecture (Access restricted to registered students): GEN-N114

