I am new to R, and am trying to solve why my predict is out of bounds. the question should be an easy fix as this is more of an introduction.
set my classifier with train data
sms_classifier <- naiveBayes(sms_train, sms_train_labels)
but error occurs when i try to do the predict funtion
sms_test_pred <- predict(sms_classifier, sms_test)
error given Error in
`[.default`(object$tables[[v]], , nd + islogical[attribs[v]]) : subscript out of bounds