14.1 Load packages and import data

Load the tidyverse, knitr, naniar, car, skimr, and janitor packages:

library(tidyverse)
library(knitr)
library(naniar)
library(janitor)
library(skimr)
library(car)

And we also need the broom package, which may be new to you.

library(broom)

The following datasets are required:

  • the “blackbird” dataset. These are the data associated with Example 12.2 in the text (page 330)
  • the “students” dataset, describing characteristics of students from BIOL202 from several years back
blackbird <- read_csv("https://raw.githubusercontent.com/ubco-biology/BIOL202/main/data/blackbird.csv", show_col_types = FALSE)
students <- read_csv("https://raw.githubusercontent.com/ubco-biology/BIOL202/main/data/students.csv", show_col_types = FALSE)