Load packages and display data structure
library(dplyr)
library(ggplot2)
# load data
load(here::here("Data/data_for_the_model.RData"))
glimpse(data %>% select(total_count, mean_sst, mean_traffic, month_factor, year_num))Rows: 18,756
Columns: 5
$ total_count <dbl> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, …
$ mean_sst <dbl> 1.126774, 2.171232, 2.261398, 2.757355, 2.336804, 2.71901…
$ mean_traffic <dbl> 313.416087, 291.692347, 1339.565172, 666.018946, 1274.568…
$ month_factor <fct> Jan, Jan, Jan, Jan, Jan, Jan, Jan, Jan, Jan, Jan, Jan, Ja…
$ year_num <dbl> 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, …
Load packages and display data structure
summary(data %>% select(total_count, mean_sst, mean_traffic)) total_count mean_sst mean_traffic
Min. : 0.00000 Min. :-1.232 Min. : 0.0044
1st Qu.: 0.00000 1st Qu.: 3.718 1st Qu.: 54.0508
Median : 0.00000 Median : 7.870 Median : 186.9045
Mean : 0.04745 Mean : 8.781 Mean : 287.3643
3rd Qu.: 0.00000 3rd Qu.:14.124 3rd Qu.: 384.6163
Max. :18.00000 Max. :23.319 Max. :1581.9298


