Skip to content
Prev 2615 / 7420 Next

'grouping' grouping variable

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: