I am having some trouble with the caret package. I am new to R and I am trying to make a multiple linear regression model. I need to split my data into the testing and training set. I tried to use the caret package createDataPartition, but I get an error. I have a dataframe with 7 variables (cols) and 511 samples (rows).
train <- createDataPartition(mydata, p=0.8, list = FALSE, times = 1)
the error
Error in table(y) : attempt to make a table with >= 2^31 elements