Returns (and prints) a summary list for an agnes object. Printing gives more output than the corresponding print.agnes method.

# S3 method for class 'agnes'
summary(object, ...)
# S3 method for class 'summary.agnes'
print(x, ...)

Arguments

x, object

a agnes object.

...

potential further arguments (require by generic).

See also

Examples

data(agriculture)
summary(agnes(agriculture))
#> Object of class 'agnes' from call:
#>  agnes(x = agriculture) 
#> Agglomerative coefficient:  0.7818932 
#> Order of objects:
#>  [1] B   NL  D   F   UK  DK  L   I   GR  P   E   IRL
#> Merge:
#>       [,1] [,2]
#>  [1,]   -1  -10
#>  [2,]   -2   -9
#>  [3,]    1   -3
#>  [4,]    3   -6
#>  [5,]   -5   -7
#>  [6,]    4  -12
#>  [7,]    6    2
#>  [8,]   -4  -11
#>  [9,]    7   -8
#> [10,]    8    5
#> [11,]    9   10
#> Height:
#>  [1]  1.649242  2.248356  2.769175  4.026768  4.788352  2.220360  5.294092
#>  [8] 14.779629  5.162364  8.550753  3.140064
#> 
#> 66 dissimilarities, summarized :
#>    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
#>   1.649   4.357   7.987   9.594  13.250  24.035 
#> Metric :  euclidean 
#> Number of objects : 12
#> 
#> Available components:
#> [1] "order"     "height"    "ac"        "merge"     "diss"      "call"     
#> [7] "method"    "order.lab" "data"