I am trying to complete an assignment for one of my courses and the goal of this assignment is to implement the library(caret) into RStudio and insert the following code:
However, when I copy and paste this code, I get the message "Error: object 'intrain' not found" and "Error: object 'training' not found". The same error continues for the assignments of training and testing. Any help would be appreciated at this point. Thank you!