[R-sig-eco] 'grouping' grouping variable

gabriel singer gabriel.singer at univie.ac.at
Fri Dec 16 09:34:59 CET 2011


hi jakub,

I would suggest starting with standardizing your environmental variables 
with scale(), then compute Euclidean distances with e.g. vegdist() in 
{vegan} and run a cluster analysis on the distance matrix with hclust(). 
Choose a cutoff for minimum dissimilarity and group your sites 
accordingly. If you happen to have an idea about the number of groups 
you expect, then kmeans() may be an alternative.

cheers, gabriel

On 12/16/11 1:14 AM, Jakub Szymkowiak wrote:
> Hello,
> I have a problem and I don't know how can I solve it.
> I have one grouping variable (16 regions in my country). Every region 
> is described by several environmental variables, in example arable 
> fields area, woodland area or meadows area.
> I want to group this regions to small number of groups so that, the 
> similar regions (in terms of my environmental variables) will be in 
> the same group.
> Any cues, how can I solve this?
>
> Cheers,
> Jakub
>
> _______________________________________________
> R-sig-ecology mailing list
> R-sig-ecology at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
>



More information about the R-sig-ecology mailing list