[R-sig-eco] combining results of two clusterings

Andres Mellado Diaz amellado at um.es
Fri Feb 6 13:38:29 CET 2015


  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ó:

> 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ó:
>> 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
>>
>>  
>
> _______________________________________________
> R-sig-ecology mailing list
>
R-sig-ecology at r-project.orghttps://stat.ethz.ch/mailman/listinfo/r-sig-ecology
-- 
Andrés Mellado Díaz

Centre for Hydrological Studies CEH-CEDEX
Water Quality Department
Pº bajo de la Virgen del Puerto, 3
28005, Madrid
SPAIN


	[[alternative HTML version deleted]]



More information about the R-sig-ecology mailing list