Date: May 13th & 14th, 2022
Time: 11:00 AM – 2:15 PM (Eastern Time)
Location: Online via Zoom
This hands-on workshop will cover essential basics of the R Programming Language, focusing on key elements to help new R users start working with data. The workshop will take place over two days, approximately 3 hrs. each day, and consist of interspersed lectures and hands-on practice sessions.
Day 1 Topics
- How to work with RStudio
- How to write and execute R code
- R Coding essentials
- variables and variable assignment
- vectors
- functions
- conditional expressions
- How to read data files into R
- How to work with Data Frames
Day 2 Topics
- Review of Day 1 exercises
- What is tidy data?
- Introduction to the tidyverse
- Introduction to dplyr and data manipulation pipelines
- Wrap-up, questions, and next-steps with learning resources
Workshop materials are available online at: https://computationalproteomics.khoury.northeastern.edu
The same materials are also present in this repository and linked below:
Day 1
- Lecture Slides
- Exercises – First Steps with R Coding
- Exercises – Working with Data Frames
- Exercise Data (.zip)
Day 2
We will be using RStudio to practice R coding throughout the workshop. Please make sure you have a working version of R and RStudio ready for use before the workshop. There are two main ways you can get set-up:
- Install R and RStudio on your own computer
- Use a pre-configured, cloud-based R workspace on RStudio Cloud (requires free registration)
Both options are free, and either or both can be used. Please see the additional set-up instructions below.
- Install R for your platform from: https://cloud.r-project.org
- Install RStudio Desktop Open Source Edition from: https://www.rstudio.com/products/rstudio/download
- Launch RStudio Desktop and confirm no warning messages or error messages appear. R must be installed before RStudio, and if R is not installed properly, the application will display an error message. If this happens, try installing R again and confirm successful installation.
- Within RStudio
- Select Tools -> Install Packages...
- In the "Packages" text box, type
tidyverse
- Click Install
- Important: if a message in the R console asks if you want to install packages from source, type 'no' and press return/enter.
- Get a cup of tea or coffee while the tidyverse R packages are installed (might take a while)
- Download the exercise data (GitHub Link), unzip the file and have it available for the workshop. We will cover what to do with this data during the workshop
- Register for a free RStudio Cloud account at: https://rstudio.cloud/
- Click the RStudio Cloud workspace link provided in the Workshop Document on https://computationalproteomics.khoury.northeastern.edu
- Click "Save a Permanent Copy" at the top toolbar; the project is now accessible in "Your Workspace"
- The necessary exercise files and data are ready to go in the workspace – no additional set-up is required