Section outline

  • 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



    • Preparation ahead of first class:
      Please make sure to install latest versions of R and RStudio:
      • R latest version (4.1.0 or higher) (https://cran.r-project.org/)
      • RStudio IDE (RStudio Desktop Open Source) latest version (1.4 or higher) (https://www.rstudio.com/products/rstudio/download/)

    • Session Audio/Video Recording (Access restricted to registered students):

    • 2021 Stream/Recording URL
      Not available unless: You belong to a group in Registered Students Only
  • 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

    • Session Audio/Video Recording (Access restricted to registered students):

  • 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


    • Session Audio/Video Recording (Access restricted to registered students):

    • 2021 Stream/Recording URL
      Not available unless: You belong to a group in Registered Students Only
  • 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


      • Session Audio/Video Recording (Access restricted to registered students):

    • 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


      • Session Audio/Video Recording (Access restricted to registered students):

    • Visualization I

      • Boxplots
      • Histograms
      • Barplots
      • Scatter plots
      • Heatmaps


      Faculty: Stathis Gennatas

      Lecture (Access restricted to registered students):  GEN-N114


      • Session Audio/Video Recording (Access restricted to registered students):