Skip to content
Back to formatted view

Raw Message

Message-ID: <23413794.post@talk.nabble.com>
Date: 2009-05-06T19:29:34Z
From: Tim LIU
Subject: How to do Naive Bayes in R?

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.