Hi - could someone confirm whether in predict_expected_claims() the object being provided to argument x_raw is supposed to have the id_policy
column? and If so, why my code is failing as if the column is not present? It is present in the object I am attempting to left join. Does it have another name? For example see 115441 and the excerpt below from that log:
Error: Join columns must be present in data.
Problem with id_policy
.
Backtrace:
█
- ├─(function (file, local = FALSE, echo = verbose, print.eval = echo, …
- │ ├─base::withVisible(eval(ei, envir))
- │ └─base::eval(ei, envir)
- │ └─base::eval(ei, envir)
- ├─global::predict_expected_claim(trained_model, Xraw) predict.R:42:2
- │ └─
%>%
(…) predict_expected_claim.R:28:2 - ├─dplyr::mutate(…)
- ├─dplyr::left_join(., model[[3]], by = “id_policy”)
- └─dplyr:::left_join.data.frame(., model[[3]], by = “id_policy”)
- └─dplyr:::join_mutate(…)
-
└─dplyr:::join_cols(...)
-
└─dplyr:::standardise_join_by(by, x_names = x_names, y_names = y_names)
-
└─dplyr:::check_join_vars(by$x, x_names)
Warning message:
no DISPLAY variable so Tk is not available