Chapter 2 Preparing for the workshop

All workshop materials are found at github.com/QCBSRworkshops/workshop04. This includes an R script which contains all code chunks shown in this book.

For this workshop, we will be working with the following datasets:

To download this data, do right click + save on the page that opens.

You should also make sure you have downloaded, installed, and loaded these packages:

  • dplyr (to work with data)
  • vegan (for population data analyses)
  • e1071 (to test models)
  • MASS (for linear discriminant analysis)
  • car (for the analysis of variance)
  • effect (to visualize models)

To install them from CRAN, run:

# Install the required packages
install.packages("dplyr")
install.packages("vegan")
install.packages("e1071")
install.packages("MASS")
install.packages("car")
install.packages("effects")

To load these packages, run:

# Load the required packages
library(dplyr)
library(vegan)
library(e1071)
library(MASS)
library(car)
library(effects)