data('twitter')
twitSet <- create_hierarchy(twitter)
# Get the sets as a presence/absence matrix
head(sets(twitSet))
# Get the clustering of the HierarchicalSet object
clusters(twitSet)
# Get the set names
set_names(twitSet)
# Get the element names or NULL if they are unnamed
element_names(twitSet)
# Get the number of sets
n_sets(twitSet)
# Get the number of elements
n_elements(twitSet)
# Get the number of independent clusters
n_clusters(twitSet)
# Get the size of each independent clusters
cluster_sizes(twitSet)
# Get the size of each set
set_sizes(twitSet)
# Get the members of each independent clusters
cluster_members(twitSet)
# Get the membership of each set
set_membership(twitSet)
Run the code above in your browser using DataLab