On this page:

These are optional lectures to introduce topics that may not be familiar to some students. If you are unfamiliar or a novice with R or the Unix/Linux command line then please go through these lessons prior to the start of the Workshop. R and the command line will be used during the practical sessions (but mostly R). There is no need to go through the tutorials for familiar topics.

Introduction to R
Presented by Elizabeth Prom-Wormley

If you are not familiar with R, then you should go through these or other introductions before starting the Workshop course.

The first video explains how to download and install R and RStudio. This step is not necessary for the Workshop, because during the course you will use the Workshop's RStudio installed in the Workshop cloud, however you will need to install R on your own computer for use after the course. Participants are welcome to use the Workshop's RStudio to follow these tutorials by using your Workshop credentials to login at https://workshop.colorado.edu/rstudio.

These videos refer to several sample scripts. The scripts are installed on the Workshop cluster in /faculty/elizabeth/2021. If you do not have access to the Workshop cluster, then the files can be downloaded from the 2021 Workshop file archive.

If you are familiar with R, but have never used it with twin data, then the Working with Twin Data in R video will be useful.

Downloading and Installing R and RStudio

Find, Open, and Review Files in R

Data management in R

Graphics and Basic Statistics in R

Working with Twin Data in R

A Very Brief Introduction to R practical exercises
Presented by Matthew Keller

This is taken from the first lecture of an "Using R" course, and along with the homework files can be used as a self paced introductory tutorial.

The slides are available as a PDF file.

Thumbnail for the slideshow

The homework files are available in two places:

  • If you are a Workshop student, and are using RStudio in the Workshop computing cloud to work through the tutorials, then the files can be found in /faculty/matt/R_Introduction
  • If you are not a Workshop student, or want to run the tutorials outside of the Workshop computing cloud, then the files can be downloaded from the 2022 Workshop file collection under the Day0 folder.

There are five homework files, and are all arranged so that (for example) HW1.R contains detailed explanations, and brief assignments; HW1-KEY.R contains the answers to the assignments.

RStudio thumbnail