I was getting an error whenever I ran rfm_table_order(); as it turns out, the issue was at a join in rfm_prep_bins(). The data frame "other_cols" passed to argument "data" did not have a column named "customer_id", so it couldn't be used as a join key and the function would crash.
In order to solve the issue, I renamed the customer ID column in "other_cols" with rfm_table_order.default()
I was getting an error whenever I ran rfm_table_order(); as it turns out, the issue was at a join in rfm_prep_bins(). The data frame "other_cols" passed to argument "data" did not have a column named "customer_id", so it couldn't be used as a join key and the function would crash.
In order to solve the issue, I renamed the customer ID column in "other_cols" with rfm_table_order.default()