Skip to content

Introduction to R for Data Analysis

Alexander Pico edited this page Feb 18, 2020 · 30 revisions

Description

The scripting language of R is considered one of the most powerful languages for quantitative analysis, statistics, and graphics. This workshop will help you get started with analyzing your datasets and creating graphs for visualization. No background in statistics or computing necessary. Bring your laptop with RStudio and R installed.

Learning Path

Novice   This is an introductory workshop in the R Scripting series. No prior experience with programming or R/RStudio is required for this course. No prerequisites. Absolute beginners are especially welcome! We'll do hands-on exercises to demystify data analysis using R. From our previous experience in teaching this workshop, we know that some of the folks register with an expectation to learn how to use ggplot2, seurat, dplyr, etc. but most registrants come absolutely uninitiated. This workshop is designed for those who have no background whatsoever in programming/R. We'll not cover ggplot2, seurat, dplyr, etc. but some of these will be covered in our intermediate-level workshops.

The topics that we'll cover are listed below.

  • RStudio interface.
  • Addition, subtraction, basic math operations.
  • Assigning values to variables.
  • Commenting in a script.
  • Logical operators.
  • Intro to functions and libraries.
  • Reading data.
  • Troubleshooting error messages.
  • Exploring data. (Basic summaries such as mean, median, etc.)
  • Selecting subsets of data.
  • Plotting data.
  • Data structures available in R.

Materials

Pre-workshop Instructions

Before the workshop, please make sure to install R and RStudio on your laptops.