Week 5 - R Foundations

Objectives

  • Introduction to core R Data Types
  • Introduction to R Control Flow

Topics

  • Basic Data Types
    • Vector, Matrix, … of int, double, char, logical, …
    • Date, Datetime, factors, …
    • NA, NaN, NULL
    • If time: More on types, dispatch, classes, …
  • Compound Types
    • DataFrame
    • List
  • Not Covered
    • Closure
    • Environment
    • Language Object
  • Control Flow
    • if and switch
    • while and for
  • Functions

Core Material

Additional Resources

  • Several of the early chapters in The Art of R Programming by Matloff, 2011.
  • R data types and control flow are key topics covered in all introductory tests, so see the additional resources for several other suggestions.