Data Analysis in R

Analytical skills for Biologists
Author

Philip Leftwich

Overview

This course will introduce scientists and practitioners interested in applying statistical approaches in their daily routine using R as a working environment. Participants will be introduced into R and R Studio while learning how to perform common statistical analyses. After a short introduction on R and its principles, the focus will be on questions that could be addressed using common statistical analyses, both for descriptive statistics and for statistical inference.

Learning outcomes

  • Understand how to read, interpret and write scripts in R.

  • Learn how to check and clean data

  • Learn statistical tools to address common questions in research activities.

  • An introduction to efficient, readable and reproducible analyses

How to use this book

For many of the chapters, we will provide the code you need to use. You can copy and paste from the book using the clipboard in the top-right corner.

We also provide the solutions to many of the activities. No-one is going to check whether you tried to figure it out yourself rather than going straight to the solution but remember this: if you copy and paste without thinking, you will learn nothing.

Finally, on occasion we will make updates to the book such as fixing typos and including additional detail or activities and as such this book should be considered a living document. Please tell me if you find any mistakes.

All code written in R version 4.4.3 “Trophy Case”. Released on February 28, 2025