I am very new in R and I try to understand my professor\'s codes. I add predictions based on regressions and obtain a line.
d_train <- d %>% add_predictions