13.1 Load packages and import data

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

library(tidyverse)
library(knitr)
library(naniar)
library(janitor)

We’ll use the following datasets:

  • the “bodytemp” dataset. These are the data associated with Example 11.3 in the text (page 310)
  • the “stalkies” dataset. These are the data associated with Example 11.2 in the text (page 307)
bodytemp <- read_csv("https://raw.githubusercontent.com/ubco-biology/BIOL202/main/data/bodytemp.csv")
stalkies <- read_csv("https://raw.githubusercontent.com/ubco-biology/BIOL202/main/data/stalkies.csv")

Reminder: Before proceeding further, remember to get an overview of each of these datasets.