• 1 Syllabus
    • 1.1 Special Topics: Data analysis using R
    • 1.2 Course Description and Objectives
    • 1.3 At the conclusion of this course:
    • 1.4 Course Materials
    • 1.5 Course Scheduling
    • 1.6 Course Workload Statement
    • 1.7 Course Evaluation
    • 1.8 Assignment Policy and Procedures
    • 1.9 Grading scale
    • 1.10 Content of this online material.
  • 2 RStudio and R
    • 2.1 R installation
    • 2.2 RStudio installation
    • 2.3 RStudio and R
    • 2.4 Working in RStudio
    • 2.5 Change my .Rprofile site
    • 2.6 Useful RStudio shortcuts
  • 3 Projects and Directory Structure
    • 3.1 Projects
    • 3.2 Stereotypical Directory Structure
    • 3.3 Filetypes in R
  • 4 Data input and output (IO)
    • 4.1 Some considerations:
    • 4.2 Reading and Writing Files
    • 4.3 Small data
    • 4.4 Practice
    • 4.5 Large(r) data
  • 5 Data Classes
    • 5.1 Numeric
    • 5.2 Integer
    • 5.3 Character
    • 5.4 Logical
    • 5.5 Factor
    • 5.6 List
    • 5.7 Vectors
    • 5.8 Matrix
    • 5.9 DataFrame
  • 6 Working in R
    • 6.1 Arithmetic operators
    • 6.2 Arithmetic operators practice
    • 6.3 Missing values (NA)
    • 6.4 Dealing with missing values
    • 6.5 Dealing with problematic values
  • 7 Examples of coding statistical operations
    • 7.1 Z-scores
    • 7.2 Quantiles
    • 7.3 Normality
    • 7.4 t-test
    • 7.5 Linear Models
    • 7.6 Analysis of Variance
  • 8 Subsetting and Logical Operators
    • 8.1 Indexing
    • 8.2 Indexing using a negative sign
    • 8.3 Slicing Matrices
    • 8.4 Indexing Data Frames
    • 8.5 Logical operators
  • 9 Loops and ifelse statements
    • 9.1 Loops
    • 9.2 Nested Loops
    • 9.3 while loop
    • 9.4 If, else, and ifelse
  • 10 Assignments
    • 10.1 Turning in code
    • 10.2 Assignment 01 - Working in R and RStudio
    • 10.3 Assignment 02
    • 10.4 Assignment 03
    • 10.5 Assignment 04
    • 10.6 Project

3 Projects and Directory Structure

3.1 Projects

https://support.rstudio.com/hc/en-us/articles/200526207-Using-RStudio-Projects

3.2 Stereotypical Directory Structure

https://swcarpentry.github.io/r-novice-gapminder/02-project-intro/

3.3 Filetypes in R

https://sphweb.bumc.bu.edu/otlt/MPH-Modules/BS/R/R1_GettingStarted/R1_GettingStarted8.html