Course: Intro to R Bootcamp

Class Information

  • R Programming I - Overview

  • Date: 2 March 2018

  • R Programming II - Graphics

  • Date: 27 April 2018

Course Description

This short course provides an intensive, hands-on introduction to the R programming language to provide students with the fundamental programming skills required to start their journey to becoming a modern day data analyst.

Course Objectives

Upon successfully completing this course, students will:

  • Be up and running with R
  • Understand the different types of data R can work with
  • Understand the different structures in which R holds data
  • Be able Import data into R
  • Perform basic data wrangling activities with R
  • Compute basic descriptive statistics with R
  • Visualize their data with base R and ggplot graphics

Structure of Class Time

The two in-class sessions will consist of both lectures, live coding by the instructor and hands on programming by the students. The hands on practice will be sequential in which students will practice applying code as it is learned.

Material

You can download the required classroom material here:   . In this file you will find the slides, data, and initial code scripts that we will go through in class.

Schedule

Session Description Resources
1 Introduction & Getting started with R         
2 Importing text and Excel data into R         
3 Understanding the primary data structures that R uses to hold your data         
4 Understanding the basics of working with different types of data         
5 Creating tidy data sets         
6 Transforming & manipulating data made easy         
7 Quick plots for early exploratory data analysis         
8 Advanced plotting with ggplot         
9 More plotting examples         
10 ggplot Detailed features         
11 dplyr Time Series Manipulation         
20 Case Study 1         
21 Case Study ECO 1         
22 Case Study ECO 2         

Hands-on Practice

  • log on to server VS-ASAP-R-1
  • start RStudio from \\asap1\EM_Apps\R\Rstudio.lnk
  • select version of R to use \\asap1\em_apps$\R-ECO
  • restart RStudio

Starting R

setwd("T:/DKI/rtrainings/bootcamp_12_2017/code-scripts")

Time Structure R Programming I + II (ECO)

Time Item
9h30 Intro: RStudio UI elements
10h00 Get Data: text files, Excel
10h30 Data Structures: vector, matrix, list
11h00 Data Types: integer, double; character; factor; date
11h30 Dplyr Data: select, filter, group_by, summarise, mutate, join
12h30 Lunch Break
13h30 Time Series Manipulation: calculate growth rates and ratios (*)
14h00 ggplot2
15h00 ggplot Detailed Features
15h30 Case Study ECO 1
16h00 Case Study ECO 2
16h30 Questions
17h00 End

Local Usage

R is open source and you can install the latest version from cran.r-project.org. For a better experience, you may also want to install RStudio: www.rstudio.com

You should have no issue installing on personal devices (Windows, MacOSX, Linux). In order to perform a local installation on a work device, it is advised to contact your CI.

learn

stats

ggplot

network analysis

R Package management

reporting

self-references