Skip to contents

Community clusters

Usage

community_clusters(c)

Arguments

c

A cohesion_matrix object, a matrix of cohesion values (see cohesion_matrix).

Value

A data frame with two columns:

  • point: The points from cohesion matrix c

  • community: The community cluster labels

Examples

D <- dist(exdata2)
C <- cohesion_matrix(D)
community_clusters(C)
#>    point community
#> 1      1         1
#> 2      2         1
#> 3      3         1
#> 4      4         1
#> 5      5         1
#> 6      6         2
#> 7      7         3
#> 8      8         4
#> 9      9         2
#> 10    10         5
#> 11    11         5
#> 12    12         5
#> 13    13         5
#> 14    14         5
#> 15    15         5
#> 16    16         5