[R] Labels in ICLUST

Steve Powell steve at promente.net
Tue Oct 11 09:28:10 CEST 2011


Dear all,
I can't get the labels slot in ICLUST to accept a character vector.
library(psych)
test.data <- Harman74.cor$cov
ic.out <- ICLUST(test.data,nclusters
=4,labels=letters[1:ncol(test.data)]) ## Error in !labels : invalid
argument type
ic.out <- ICLUST(test.data,nclusters =4,labels=1:ncol(test.data)) ## OK

Any ideas?



More information about the R-help mailing list