Hi! Welcome!
I’m afraid I don’t have an answer for you, but I have a couple of suggestions to hopefully help you get an answer faster:
-
This doesn’t sound like a question about the RStudio IDE, so I think it will find a more interested and knowledgeable audience in a different category. I recommend moving the question to Machine Learning and Modeling.
-
Can you please format your code as code? We ask people to do that around here because it’s difficult to read code that’s not formatted correctly, and special characters can accidentally trigger other types of automatic formatting (like how your comments turned into headings). Just edit your post (little pencil icon at the bottom), select all your code, and click the
</>
button at the top of the editing box.