Training session in R

The goal of introR section is to get you acquainted with R, both the environment and the language. We’ll discuss data type manipulation, the structure of commands, how to get help and more information, how to load packages, and how to use the environment

The goal of advancedR section is to get a bit more into the depth of how to read, understand, and troubleshoot R code - by introducing loops, conditionals and functions which are a large part of R, and therefore a large part of understanding the syntax and function of the language. We will also introduce graphing and script creation in R.

Topics

  1. Base R vs tidyverse
  2. What is R Studio?

2.1 The console window

2.2 Trying out the Console

2.3 Storing Data

2.4 Using the script window

  1. Data Types

3.1 Character

3.2 Numeric

3.3 Integer

3.4 Complex

3.5 Logical

  1. Data Structures

4.1 Atomic Vector

4.2 List

4.3 Matrices

4.4 Data Frames

4.5 Factors

  1. Reading in Data

5.1 Subsetting

5.1.1 Base R

5.1.2 Dplyr

  1. Loops
6.1 Nested for loops
  1. Conditionals

7.1 If else

7.1.1 If statement

7.1.2 If..else statement

  1. Functions
  2. Plotting

9.1 Basic plotting

8.1.1 Scatterplot

8.1.2 Histogram

8.1.3 Boxplot

9.2 ggplot2

9.2.1 Histogram

9.2.2 Scatterplot

9.2.3 Boxplot

9.2.4 Barplot

  1. Project Management with Rstudio

    10.1 Creating a self-contained project

    10.2 Rstudio and Git

  2. Quitting R

  3. References