[R] naiveBayes() error 'attempt to set an attribute on NULL'

Ivan7 ivansemenov at mail.ru
Fri Aug 3 21:36:40 CEST 2012


 This error occurs when one of  your categorical variables in data has only
NA values, and it seems to deal well with numercial NA in most cases. As a
solution you can set all such variables to a single constant - this wont
affect prediction result



--
View this message in context: http://r.789695.n4.nabble.com/naiveBayes-error-attempt-to-set-an-attribute-on-NULL-tp4631560p4639096.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list