Skip to content
Prev 201842 / 398506 Next

R help with princomp and pam clustering

Hi JorisMeys and thanks!
JorisMeys wrote:
A and B are equal in column names (variables) but different in rownames
(observations), but still it doesn't work.
If I use 
A<-princomp(matrix, cor=ncol(pamX$data)!=2)$loadings 
and then
predict(A,B)
then the answer is that there is no valid method
(My R version is in Italian...the original message is -Errore in
UseMethod("predict") : nessun metodo applicabile per "predict"- )
If I use
A<-princomp(matrix, cor=ncol(pamX$data)!=2)
then it says the index is out of limit

Thank you again!!