User Tools

Site Tools


en:non-hier

Numerical classification

Non-hierarchical classification

kmeans

Non-hierarchical classification, using method of k means. Non-hierarchical methods are overlooked, even if they give ecological interesting and relevant results. You need to a priori set up the number of clusters you want the data divide into.

cluster.kmeans <- kmeans (dis, centers = 5)
cluster.kmeans$cluster
 1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 
 4  4  4  4  5  5  1  2  4  4  5  4  4  4  5  2  1  2  4  1  4  5  2  2  4  3 
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 
 2  2  2  5  5  1  1  1  1  1  2  4  4  4  2  2  2  5  4  4  4  1  5  1  1  2 
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 
 2  3  5  3  3  3  3  3  3  3  3  5  3  3  3  3  3  2  2  2  2  2  3  4  4  5 
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 
 3  3  3  5  3  3  3  5  4  4  4  5  2  1  2  5  2  1  1
en/non-hier.txt · Last modified: 2017/10/11 07:36 (external edit)