S3 methods for ClusterTable objects.

# S3 method for ClusterTable
as.matrix(x, ...)

# S3 method for ClusterTable
print(x, ...)

# S3 method for ClusterTable
summary(object, ...)

Arguments

x, object

Object of class ClusterTable.

...

Additional arguments for consistency with S3 methods.

Examples

clustab <- as.ClusterTable(TreeTools::BalancedTree(6))
as.matrix(clustab)
#>      [,1] [,2]
#> [1,]    0    0
#> [2,]    2    3
#> [3,]    1    3
#> [4,]    1    4
#> [5,]    1    5
#> [6,]    1    6
print(clustab)
#> ClusterTable on 6 leaves: t1 .. t6
summary(clustab)
#> ClusterTable on 6 leaves:
#>  123456
#>  .**...
#>  ***...
#>  ****..
#>  *****.
#>  ******
#>  1: t6  2: t5  3: t4  4: t3  5: t2  6: t1