I am very new to R . When I type this code I get an error. I cannot figure out why.
svmfit <- e1071::svm(training_data, y = train_labels, kernel = 'radial', cost =1, gamma =3)
Error message:
Error in if (any(co)) { : missing value where TRUE/FALSE needed