Skip to content

combining results of two clusterings

3 messages · Marcelino de la Cruz, Andres Mellado Diaz

#
Hi all,

I'm stuck in what I guess is a trivial problem...

Do you know a simple way to combine the results of two consecutive cluster
classifications? I mean, I first classify /N/ observations into Z clusters
(so I have a table of N observations by Z clusters); then I classify these
Z clusters into /z/ clusters (so I got a /Z/ by /z/ table). Now I want to
assign the /z/ values to my /N/ observations.

thank you very much for your help,

Andres?

?
#
Hi Andres,

let's say  that "Z" is the vector with your first classification (i.e., 
which assigns observations to clusters Z) and "z" the vector with the 
second one.

z[Z]

would assign each observation to each z cluster


HTH,


MArcelino



El 06/02/2015 a las 12:42, Andres Mellado Diaz escribi?:
#
Woww! So elegant!! seems it was really trivial indeed, but beautiful
anyway...love R!

Thank you very much Marcelino,?

Andr?s

Marcelino de la Cruz <marcelino.delacruz at upm.es> escribi?:
to
R-sig-ecology at r-project.orghttps://stat.ethz.ch/mailman/listinfo/r-sig-ecology