Skip to content
Prev 45018 / 398532 Next

cluster-gruop-match with other attributes after na.omit

i get an idea:


cldatx1 <- subset(cldat,select=c(ID,A,B,C))
cldatx2 <- subset(cldat,select=c(A,B,C))

The id didn't cause na.omit , so 
both have same obs.

cl1 <- clara(cldatx2,4)
cluster <- cl1$clustering
match1 <- cbind(cldatx1,cluster)
resultdata <- merge(cldat,macth1,by.x="ID",by.y="ID",all.x=T)

Sure there is an easier way???
Thanks,Christian



Am Samstag, 28. Februar 2004 14:07 schrieb Christian Schulz: