Skip to content

UofTCoders/rcourse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quantitative Methods in R for Biology

Course in Ecology and Evolutionary Biology

Build Status DOI License: CC BY 4.0 License: MIT status

Description

Quantitative Methods in R for Biology is a course aimed at undergraduates at a third year level or above. The course covers statistics and data analysis for ecology and reproducible quantitative methods in R.

Statistical analysis, modelling, and data simulation are essential skills for ecologists and evolutionary biologists. Furthermore, ever larger datasets are quickly becoming the norm in a variety of scientific disciplines. This course is therefore designed to meet a growing demand for reproducible, openly accessible, analytically thorough, and well-documented science. Students will learn to develop ecological population models, analyze large datasets, and document their research using the R programming language. No prior programming experience is required.

For more detail on the course, check out the syllabus.

Instructional Design

The lectures in this course are designed to be presented using a participatory live-coding approach. This involves an instructor typing and running code in RStudio in front of the class, while the class follows along using their own computers. Challenges are interspersed in the lesson material, allowing students to collaboratively work on smaller coding problems for a few minutes. All lesson materials are provided ahead of time on the course website for students to refer to during lectures.

The bulk of the course's assessment structure involves weekly assignments. These assignments are primarily code-based and are designed to also be completed in RStudio using the R Markdown format.

At the end of the course, students undertake a group project, wherein they attempt to address a scientific question by applying techniques learned over the course to open ecological data. At the end of the semester, groups present their work in a conference-style presentation, and submit a report in the style of a scientific paper.

Lecture Content

The course's lesson material is broadly subdivided into three main topics:

  1. Introductory R (Lectures 1-5)
    • Introduces students to the R programming language, with a focus on data wrangling and visualization.
  2. Statistical analysis (Lectures 6-12)
    • Introduces concepts such as regression, principal component analysis, statistical models, and numerical models.
  3. Reproducible science (Lectures 13-15)
    • Prepares students for project work period and introduces methods for reproducible science (GitHub, R Markdown).

Content Reuse Instructions

If you are interested in using or modifying this content and repository for your own course, there are a few steps you need to take:

  1. Create a fork of this repository.
  2. Create a personal access token for your account on GitHub (make sure to enable the "repo" scope so that using this token will enable writing to your GitHub repos) and copy the token to your clipboard.
  3. Go to https://travis-ci.org/USER/REPO/settings replacing USER with your GitHub ID and REPO with the name of the forked repository.
  4. Under the section "Environment Variables", type GITHUB_TOKEN in the "Name" text box and paste your personal access token into the "Value" text box.

In general, the first time the Travis CI builds can take about 15-25 minutes but subsequent builds take about 5-6 minutes.

Contributing

If you are interested in contributing to the course material, please refer to the guidelines in CONTRIBUTING.md.

Related Publications

Santangelo JS (2019). Data simulation and randomization tests. NEON Faculty Mentoring Network, QUBES Educational Resources. doi:10.25334/Q4CT7P. Available online.

Bonsma-Fisher M, Hasan AR (2018). Working with plant phenology data and fitting a nonlinear model using least squares in R. NEON Faculty Mentoring Network, QUBES Educational Resources. doi:10.25334/Q4Q73D. Available online.

Acknowledgements

We thank Dr. Christie Bahlai, Dr. Asher Cutter, Dr. Martin Krkosek, and the Department of Ecology and Evolutionary Biology at the University of Toronto for helping make this course a reality.

We also thank Dr. Megan Jones and Dr. Kusum Naithani for their support and guidance, particularly around use of the NEON Ecological Observatory data.