R code from Mood and personality interact to determine cognitive biases in pigs

Complete R code for the analysis