Introduction to R (1 day, HNDC)

General Information

During this 1-day workshop you will be learning the following:

    * R syntax

    * Data structures in R

    * Inspecting and manipulating data

    * Making plots to visualize data

    * Exporting data and graphics

In addition to the above, you will also learn about good data management practices, installing and working with data packages from various sources, and the different ways to get help when coding in R. 


Setup

Please install the following programs on the laptop you will be using in class:

  1. Rstudio (pick the appropriate Installer for your operating system).  
  2. R (pick the appropriate download for your operating system and choose the most recent version)

Schedule 

************************************ Schedule ************************************
09:00 - 09:30

Introduction to course

Radhika
09:30 - 10:10

Intro to R and RStudio

Radhika
10:10 - 10:45

R syntax and data structure

Mary
10:45- 10:55Coffee 
10:55 - 11:40

R syntax and data structure (contd.)

Mary
11:40 - 12:05

Functions and Arguments

Radhika

12:05 - 13:05

Lunch 
13:05 - 13:25

Packages and libraries

Mary
13:25 - 14:25

Data manipulation (Part 1)

Radhika
14:25 - 14:35Coffee 
14:35 - 15:50

Data manipulation (Part 2)

Mary
15:50 - 16:45

Data visualization with R

Radhika
16:45 - 17:00

Resources, wrap-up, questions

Radhika
 

Optional Exercises/Practice

(Answer Key)

 

 


Acknowledgements, Support & License:

These lessons have been developed by members of the teaching team at the Harvard Chan Bioinformatics Core (HBC). These are open access materials distributed under the terms of the Creative Commons Attribution license (CC BY 4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.

Some of the materials used in this lesson are adapted from work that is Copyright © Data Carpentry (http://datacarpentry.org/). All Data Carpentry instructional material is made available under the Creative Commons Attribution license (CC BY 4.0).

 


Copyright © 2024 The President and Fellows of Harvard College * Accessibility * Support * Request Access * Terms of Use