I am running a k-means clustering code in R : mydata_kmeans5 <-
kmeans(mydata, centers=5).. But the problem is that the data is having some
"NA" in it. So R is showing me a message :Error in switch(nmeth, { :
NA/NaN/Inf in foreign function call (arg 1)
In addition: Warning messages:
1: In switch(nmeth, { : NAs introduced by coercion
2: In switch(nmeth, { : NAs introduced by coercion... my objective is to
find out the customers id who are falling in particular cluster say clst 1,
clst2 etc...If I want to get a data like that where I will have customer id
on one column and cluster number on the other..what code should I use
exactly? Thanks in advance...

Arup
 

-- 
View this message in context: 
http://www.nabble.com/K-means-clustering-with-NA-tp24840626p24840626.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