On Thu, Nov 26, 2009 at 1:04 AM, Tyler82 <procaccianti.claudio at gmail.com>
wrote:
Hi all!
I am working with R package cluster and I have a little problem:
let's say I have two datasets...first one ("A") is divided into 4
clusters
by means of Pam algorythm.
Let's say I want to project the second database ("B") onto the Comp.1 X
Comp.2 graph, and see where its elements are placed.
The two datasets are made of different dim (54x19 and 28x19). I tried to
extract the $loadings of the A clustering but I can't seem to figure out
how
to use them with B :(
Prin <- princomp(A)
predict(Prin,B)
in the assumption that the variable names in both dataframes are equal.