Welcome to Introduction to R for Ecological Data Analysis, a 2-day workshop at the University of New Brunswick taught by Dr. Lindsay Brin. This workshop is part of the Watershed and Aquatics Training in Environmental Research (WATER) program at the Canadian Rivers Institute, funded by an NSERC Collaborative Research and Training Experience (CREATE) grant.

The in-person workshop covers most of the lessons below, roughly in the order in which they are listed. Additional content is provided on this site as a reference. (For example: in the control structures lesson, we will cover if statements in class, but lesson materials for for loops are also provided here; the same is true for simple versus multiple regression, the latter of which we will refer to only briefly.)

The workshop builds off the Data Carpentry lessons on R for data analysis for Ecology, which are distributed under the CC-BY license. The alternate versions of these lessons follow the Data Carpentry lesson plan very closely but are re-written to include CRI workshop-specific data sets and to provide more details to allow participants to more easily go through lessons on their own (i.e., when missing a portion of the workshop for required classes).

Course details can be found below. Data for the workshop can be downloaded from github. This information can be accessed online at http://lindsaydbrin.github.io/CREATE_R_Workshop.


Workshop lessons outline

Introduction to R

Pull it all together

Computing

Pull it all together



Course details

Course overview

R is a powerful, free, open-source, and widely used tool for working with data that can allow you to streamline your analysis process, increase reproducibility, catch and avoid mistakes, and access newly developed analyses and statistical approaches.

This workshop will provide participants with the tools for reading in, manipulating, analyzing, and visualizing data in R. For example, we will cover topics such as cleaning and organizing data, joining data sets, working with factors, writing functions, using for loops and if…else statements, etc.

A primary goal is to help participants become comfortable working in a coding environment. To accomplish this, the workshop format will include a combination of explanation, demonstration, and extensive hands-on practice using a variety of sample datasets. Participants will leave with basic skills that can be put into use immediately, as well as a platform from which to learn more complex analyses.

Learning objectives

At the end of this 2-day workshop, participants will: