Displaying 1 result from an estimated 1 matches for "weathernomin".
Did you mean:
weathernominal
2011 Feb 26
1
invalid type (list) for variable
...es"
..- attr(*, "class")= chr "AsIs"
and the command:
NaiveBayes.model <- NB(classifiedPositive ~ ., data = factivaTDM.train)
generates the error:
invalid type (list) for variable 'classifiedPositive'
Here is another dataset which causes no errors:
> str(weatherNominal.train)
'data.frame': 13 obs. of 5 variables:
$ outlook : Factor w/ 3 levels "overcast","rainy",..: 3 3 1 2 2 2 1
3 3 2 ...
$ temperature: Factor w/ 3 levels "cool","hot","mild": 2 2 2 3 1 1 1 3
1 3 ...
$ humidity : Factor w...