Introduction to R

PDF

Shiny and Knitr Docs

JHSPH

Instructors:

Class:

  • 1:30-5pm in E6519 on July 10-14

Schedule

Module Slides Code Resource In Class Work
Day 0
Homework 1 Try R, Data Camp
Day 1
Intro HTML, PDF R, Rmd
RStudio HTML, PDF R, Rmd
Basic R HTML, PDF R, Rmd Lab, Key
Data IO HTML, PDF R, Rmd Lab, Key
Homework 2 R, Key
Day 2
Subsetting Data in R HTML, PDF R, Rmd Lab, Key
Data Summarization HTML, PDF R, Rmd Lab, Key
Day 3
Data Classes HTML, PDF R, Rmd Lab, Key
Data Cleaning HTML, PDF R, Rmd Lab, Key Live R file
Homework 3 R, Key
Day 4
Manipulating Data in R HTML, PDF R, Rmd Lab, Key Live R file
Data Visualization HTML, PDF R, Rmd Lab, Key Live R file
Day 5
Statistics HTML, PDF R, Rmd Lab, Key Live R file
Functions HTML, PDF R, Rmd
Knitr HTML, PDF R, Rmd

All the Requirements in this Course

Packages

All the packages used (in any way - homework, lecture, lab), are listed in this text file. If you would like to install all the packages from this file, please download that text file and run this R script

Functions

All the functions used (in any way - homework, lecture, lab), are listed in this CSV file, which can start a kind of cheat sheet for you.

Data

All the data used that are not specifically to be downloaded from the web are located in this zip file, but we will show you how to read data from the internet as well.

Example Projects

Example projects can be found with the source code: Rmd, and the output Docx here.

Live Code Examples

Code Example Script
Replacing with ifelse in dplyr replace_if.R

Online Videos of Lectures

From Summer Institute 2 2017

Day Link to Video
Day 1: Part 1 https://youtu.be/QdD6x3tDI5Y
Day 1: Part 2 https://youtu.be/GMBfu_bnKOI
Day 2 https://youtu.be/NQFAoxX-w74
Day 3: Part 1 https://youtu.be/OEv1ZZXvToY
Day 3: Part 2 https://youtu.be/OEbgC3A5vKw
Day 4: Part 1: Strings https://youtu.be/D6QDXDlKaWs
Day 4: Part 2: Strings https://youtu.be/8pVPMZugn6E
Day 5

Find an Error!?

Feel free to submit typos/errors/etc via the github repository associated with the class: https://github.com/muschellij2/intro_to_r

This page was last updated on 2017-08-11 10:21:32 Eastern Time.