[R] How to do Naive Bayes in R?

Tim LIU timothy.sliu10 at gmail.com
Wed May 6 21:29:34 CEST 2009

I am wondering if anybody here have a simple example in R for Naive 

For example, I can do k-means clustering on the "iris" data -

cl <- kmeans(iris[,1:4], 3)


But how to do Naive Bayes classification in the same "iris" data?

Many thanks! 

View this message in context: http://www.nabble.com/How-to-do-Naive-Bayes-in-R--tp23413794p23413794.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list