University of Oslo

April 11 and April 12, 2022

08:30-16:00

Instructors: Athanasia Monika Mowinckel, Espen Rosenquist

Helpers: Alina Sartorius, Asbjørn Holmgren, Luis Cadahia-Lorenzo

General Information

This is not a full Software Carpentry, but an R tidyverse workshop based on Software Carpentry material.

Who: The course is aimed at graduate students and other researchers. It is suited to both novice R users, and those familiar in R but wanting to learn the tidyverse.

Where: Seminarrom Perl, Ole Johan Dahls hus, Gaustadalléen 23B, 0373 Oslo. Get directions with OpenStreetMap or Google Maps.

When: April 11 and April 12, 2022. Add to your Google Calendar.

Requirements: Participants must bring a laptop with a Mac, Linux, or Windows operating system (not a tablet, Chromebook, etc.) that they have administrative privileges on. They should have a few specific software packages installed (listed below). They are also required to abide by Software Carpentry's Code of Conduct.

Accessibility: We are committed to making this workshop accessible to everybody. The workshop organizers have checked that:

Materials will be provided in advance of the workshop and large-print handouts are available if needed by notifying the organizers in advance. If we can help making learning easier for you (e.g. sign-language interpreters, lactation facilities) please get in touch (using contact details below) and we will attempt to provide them.

Contact: Please email to-be-announced for more information.


Schedule

Monday, 11 April 2022

08:30 Introduction to RStudio and tidyverse
09:00 Elegant data visualisations with ggplot2
10:30 Coffee
10:45 Elegant data visualisations with ggplot2 (continued)
11:30 Lunch break
12:30 Data subsetting with dplyr
13:45 Coffee
14:00 Data manipulation with dplyr
15:00 Chaining command with the pipe
16:00 Wrap-up

Tuesday, 12 April 2022

08:30 Recap of previous week materials and pre-read
09:30 Reshaping data with tidyr
10:30 Coffee
10:45 Tidy data summaries
11:30 Lunch break
12:30 Reshaping and tidy data summaries
13:45 Coffee
14:00 Reshaping and ggplot2
15:00 Data manipulation across columns
16:00 Worshop wrap-up

We will use this collaborative document for chatting, taking notes, and sharing URLs and bits of code.


Setup

To participate in a Software Carpentry workshop, you will need access to the software described below. In addition, you will need an up-to-date web browser.

We maintain a list of common issues that occur during installation as a reference for instructors that may be useful on the Configuration Problems and Solutions wiki page.

R

R is a programming language that is especially powerful for data exploration, visualization, and statistical analysis. To interact with R, we use RStudio.

Windows

Video Tutorial

Install R by downloading and running this .exe file from CRAN. Please, also install Rtools, from this link.
Note that if you have separate user and admin accounts, you should run the installers as administrator (right-click on .exe file and select "Run as administrator" instead of double-clicking). Otherwise problems may occur later, for example when installing R packages.

macOS

Video Tutorial

Install R by downloading and running this .pkg file from CRAN.

Linux

You can download the binary files for your distribution from CRAN. Or you can use your package manager (e.g. for Debian/Ubuntu run sudo apt-get install r-base and for Fedora run sudo dnf install R).

Additional installation requirements

RStudio

Please install the RStudio IDE, it is the user interface towards R, and is required for this workshop.

R packages

Lastly, you will need to install two packages to join the workshop, namely the tidyverse and palmerpenguins packages. You can do this by opening RStudio, and in the panel labelled "console" (usually in the bottom left corner), type the following: install.packages(c("tidyverse", "palmerpenguins"))