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

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

data(iris)
cl <- kmeans(iris[,1:4], 3)
cl$cluster
cbind(1:150,iris$Species)

===========

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.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to