I am attempting to create train and test data for an LDA. I keep getting an error message that my test and train data have different levels of different factors for one of my factors.

Here is the code I am using and my issue I am seeing.

#setting seeds & creating new training / test data set.seed(123) training.samples.early % createDataPartition(p = 0.8, list = FALSE) train.data.early

More Caitlin Bemis's questions See All
Similar questions and discussions