Issue
The function median_qi() from the tidybayes library is called, but the package is not loaded
Solution
Include library(tidybayes) at beginning of script
|
samples <- as_tibble(pp) %>% |
|
pivot_longer(everything(), names_to = "year", values_to = "data") %>% |
|
na.omit() %>% |
|
group_by(year) %>% |
|
median_qi(data, .width = c(0.5, 0.95)) %>% |
|
print(n=150) |
Issue
The function
median_qi()from thetidybayeslibrary is called, but the package is not loadedSolution
Include
library(tidybayes)at beginning of scriptpws-herring-basa/plotting/plot_survey_fits.R
Lines 65 to 70 in caef7da