I keep receiving an error when I try add a calculated field to the cleaned x_raw dataset. Why is this?
E.g. if I do something like x_raw$calc=x_raw$claim_amount*(1+0.55) in the preprocess_X_data function I receive the following error:
*tmp*, calc, value = numeric(0)) :
replacement has 0 rows, data has 2000
I also note that some functions like ifelse don’t work, why?