Error while executing CreateDataPartition function


The information you provided is not really sufficient for us to be able to recreate the problem. It's best to build a reprex so we can take a closer look at what's causing the issue. A reprex consists of the minimal code and data needed to recreate the issue/question you're having. You can find instructions how to build and share one here:

I don't know if it might help in your case, but a quick search online brought me to this forum post:

What data type is Personal_loan_master? It should be a vector according to the createDataPartition function, so if it's something else, make sure to address that. It cold be you're providing it with another data type like a table and the function then tries to generate all possible combinations (in converting it into a vector) resulting in the error... Of course this is a guess, so please provide more info :slight_smile:

Hope this helps,