library(readxl)
library(tidyverse)
library(patchwork)
library(car) # For diagnostic tests
pine_df <- read_excel("data/class_pine needle length.xlsx")
pine_switch_df <- read_excel("data/class_pine needle length switched.xlsx")
glimpse(pine_df)Rows: 361
Columns: 5
$ group <chr> "five", "five", "five", "five", "five", "five", "five", "fiv…
$ tree_no <dbl> 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, …
$ tree_char <chr> "tree_1", "tree_1", "tree_1", "tree_1", "tree_1", "tree_1", …
$ side <chr> "sunny", "sunny", "sunny", "sunny", "sunny", "sunny", "sunny…
$ length_mm <dbl> 22.66, 21.14, 18.55, 18.65, 20.99, 18.94, 19.75, 18.46, 20.5…
















