University of Oslo

Feb 15 and Feb 22, 2018

08:30-16:00

Instructors: Dmytro Perepolkin, Raoul Wolf

Helpers: Fatima Heinicke

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. Some experience of working with Git and Github is recommended for those attending the workshop.

Where: Seminarrom 123 in Vilhelm Bjerknes hus, Moltke Moes vei 35, 0851 Oslo. Get directions with OpenStreetMap or Google Maps.

When: Feb 15 and Feb 22, 2018. 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 contact-us@swcarpentry.uio.no for more information.


Schedule

Thursday, 15 February 2018

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 manipulation with dplyr
13:45 Coffee
14:00 Easily arrange data with tidyr
15:00 Happy Git with R
16:00 Next week assignments and wrap-up

Thursday, 22 February 2018

08:30 Recap of previous week materials and pre-read
09:30 Introduction to functions in R
10:30 Coffee
10:45 Functional programming with purrr
11:30 Lunch break
12:30 Operating with list-cols
13:45 Coffee
14:00 Elegant modelling pipelines with modelr
15:00 Resampling in tidyverse
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.

Git

Git is a version control system that lets you track who made changes to what when and has options for easily updating a shared or public version of your code on github.com. You will need a supported web browser (current versions of Chrome, Firefox or Safari, or Internet Explorer version 9 or above).

You will need an account at github.com for parts of the Git lesson. Basic GitHub accounts are free. We encourage you to create a GitHub account if you don't have one already. Please consider what personal information you'd like to reveal. For example, you may want to review these instructions for keeping your email address private provided at GitHub.

Windows

Git should be installed on your computer as part of your Bash install (described above).

macOS

Video Tutorial

For OS X 10.9 and higher, install Git for Mac by downloading and running the most recent "mavericks" installer from this list. After installing Git, there will not be anything in your /Applications folder, as Git is a command line program. For older versions of OS X (10.5-10.8) use the most recent available installer labelled "snow-leopard" available here.

Linux

If Git is not already available on your machine you can try to install it via your distro's package manager. For Debian/Ubuntu run sudo apt-get install git and for Fedora run sudo dnf install git.

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. Also, please install the RStudio IDE. 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. Also, please install the RStudio IDE.

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). Also, please install the RStudio IDE.