Skip to content

hms-immunology/intro-R-workshop

Repository files navigation

Introduction to R Workshop

Overview

This repository contains materials for an introductory R programming workshop, focusing on data analysis in bioinformatics and health sciences. The workshop is designed as a 4-day course with 2-hour sessions each day, taking participants from basic R programming concepts through to practical data analysis techniques.

Instructor

Eren Ada, PhD
Research Associate in Immunology
Harvard Medical School
Email: [email protected]

Location & Schedule

TMEC 333 Conference Room
Tosteson Medical Education Center
260 Longwood Ave
Boston, MA 02115

Workshop Dates:

  • Day 1: February 11, 10:00 AM - 12:00 PM
  • Day 2: February 13, 10:00 AM - 12:00 PM
  • Day 3: February 18, 10:00 AM - 12:00 PM
  • Day 4: February 20, 10:00 AM - 12:00 PM

Website

All workshop materials are available on our course website: https://hms-immunology.github.io/intro-R-workshop/

Course Structure

Day 1: R Basics and Data Structures (2 hours)

  • Introduction to R and RStudio
  • Objects and Variables
  • Vectors and Matrices
  • Practice Exercises

Day 2: Working with Data (2 hours)

  • Working with Data Frames
  • Data Manipulation with dplyr and tidyr
  • Practice with Real-world Examples

Day 3: Data Visualization (2 hours)

  • Introduction to ggplot2
  • Advanced Plotting Techniques
  • Creating Publication-Ready Figures
  • Extended Practice Sessions

Day 4: Statistical Analysis (2 hours)

  • Basic Statistical Concepts
  • Hypothesis Testing
  • Advanced Topics (Optional)
  • Workshop Wrap-up and Q&A

Materials Format

Each lesson is provided in multiple formats:

  • Markdown (.md) files for direct viewing on the website
  • R Markdown (.Rmd) files for downloading and running interactively in RStudio
  • HTML rendered versions for local viewing

Prerequisites

Before attending the workshop, please ensure you have:

  1. A laptop with R and RStudio installed
  2. Basic understanding of programming concepts (helpful but not required)
  3. Followed our setup instructions

Repository Structure

intro-R-workshop/
├── class-materials/          # Main course content
│   ├── r_basics.Rmd         # Day 1: R basics
│   ├── objects-variables.Rmd # Day 1: Objects
│   ├── vectors-matrices.Rmd  # Day 1: Data structures
│   ├── data-frames.Rmd      # Day 2: Data frames
│   ├── data-manipulation.Rmd # Day 2: Data manipulation
│   ├── data-visualization.Rmd# Day 3: Visualization
│   └── basic-statistics.Rmd  # Day 4: Statistics
├── rendered-html/           # Rendered HTML versions
└── setup.md                # Setup instructions

Daily Schedule

Each day consists of a 2-hour session structured as follows:

Day 1: R Basics and Data Structures (February 11, 10:00 AM - 12:00 PM)

  • 10:00 - 10:30: Introduction to R and RStudio
  • 10:30 - 11:00: Objects and Variables
  • 11:00 - 11:30: Vectors and Matrices
  • 11:30 - 12:00: Practice and Q&A

Day 2: Working with Data (February 13, 10:00 AM - 12:00 PM)

  • 10:00 - 10:45: Working with Data Frames
  • 10:45 - 11:30: Data Manipulation (dplyr/tidyr)
  • 11:30 - 12:00: Practice and Q&A

Day 3: Data Visualization (February 18, 10:00 AM - 12:00 PM)

  • 10:00 - 10:45: Introduction to ggplot2
  • 10:45 - 11:30: Advanced Plotting Techniques
  • 11:30 - 12:00: Visualization Practice

Day 4: Statistical Analysis (February 20, 10:00 AM - 12:00 PM)

  • 10:00 - 10:45: Basic Statistics
  • 10:45 - 11:30: Advanced Topics
  • 11:30 - 12:00: Workshop Wrap-up and Q&A

Getting Started

  1. Visit our course website for the most user-friendly experience
  2. Follow the setup instructions to prepare your computer
  3. Start with Day 1 materials and progress through the course

Contributing

We welcome contributions to improve the workshop materials. Please:

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request with your changes

Contact

For questions about the workshop or materials:

  • Email: [email protected]
  • Open an issue in this repository
  • Use the discussion forums on our website

Copyright and License

© 2024 Eren Ada, Harvard Medical School. All rights reserved.

This material is licensed under Creative Commons Attribution-ShareAlike 4.0 International License. You are free to:

  • Share — copy and redistribute the material in any medium or format
  • Adapt — remix, transform, and build upon the material for any purpose, even commercially

Under the following terms:

  • Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made.
  • ShareAlike — If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.

For questions about usage or permissions, please contact [email protected]

Acknowledgments

This workshop was developed by Eren Ada, PhD at the HMS Immunology Program. We thank all contributors and participants for their valuable feedback and suggestions.

Releases

No releases published

Packages

No packages published

Languages