R Data Wrangling and Manipulation: Parts 1-2

February 12, 2024, 9:00am to February 14, 2024, 11:00am

To receive a Zoom link after registering above, please fill out the affiliations form if you have not done so at least once before: https://dlab.berkeley.edu/affiliations

Trying to register, but not affiliated with the UCB campus? If you are from Berkeley Lab (LBL), CZ Biohub, or other organizations, please register via our partner portals here.

Location: Remote via Zoom. Link will be sent on the morning of the event.

Recordings: This D-Lab workshop will be recorded and made available to UC Berkeley participants for a limited time. Your registration for the event indicates your consent to having any images, comments and chat messages included as part of the video recording materials that are made available.

Date & Time: This workshop is a 2-part series running from 9am-11am each day:

• Part 1: Monday, February 12
• Part 2: Wednesday, February 14

Start Time: D-Lab workshops start 10 minutes after the scheduled start time (“Berkeley Time”). We will admit all participants from the waiting room at that time.


In this workshop, we provide practical guidance on data wrangling using R's tidyverse suite of packages. In Part 2, we cover how to wrangle messy data into tidy data. In Part 2, we cover how to wrangle messy data into tidy data.

After this workshop, you will be able to:

  • Use tidyverse functions for transforming your data to be used for visualization and analysis
  • Identify how an "untidy" dataframe gets in the way of data visualization and analysis
  • Use pivot_longer and pivot_wider to wrangle a dataframe into "tidy" form, and join multiple dataframes

Prerequisites: D-Lab’s R Fundamentals or equivalent knowledge; previous experience with base R is assumed.

Workshop Materials: https://github.com/dlab-berkeley/R-Data-Wrangling

Software Requirements: Installation Instructions for R and RStudio

Is RStudio Not working on your laptop?Attend the workshop anyway, we can provide you with a cloud-based solution until you figure out the problems with your local installation.

Feedback: After completing the workshop, please provide us feedback using this form

Questions? Email: dlab-frontdesk@berkeley.edu