print.dissimilarity.Rd
Print or summarize the distances and the attributes of a
dissimilarity
object.
These are methods for the functions print()
and summary()
for
dissimilarity
objects. See print
, print.default
,
or summary
for the general behavior of these.
# S3 method for dissimilarity print(x, diag = NULL, upper = NULL, digits = getOption("digits"), justify = "none", right = TRUE, ...) # S3 method for dissimilarity summary(object, digits = max(3, getOption("digits") - 2), ...) # S3 method for summary.dissimilarity print(x, ...)
x, object | a |
---|---|
digits | the number of digits to use, see |
diag, upper, justify, right | optional arguments specifying how
the triangular dissimilarity matrix is printed; see
|
... | potential further arguments (require by generic). |
## See example(daisy) sd <- summary(daisy(matrix(rnorm(100), 20,5))) sd # -> print.summary.dissimilarity(.)#> 190 dissimilarities, summarized : #> Min. 1st Qu. Median Mean 3rd Qu. Max. #> 1.189 2.448 3.239 3.182 3.836 5.574 #> Metric : euclidean #> Number of objects : 20str(sd)#> List of 4 #> $ summ : 'summaryDefault' Named num [1:6] 1.19 2.45 3.24 3.18 3.84 ... #> ..- attr(*, "names")= chr [1:6] "Min." "1st Qu." "Median" "Mean" ... #> $ n : int 190 #> $ Size : int 20 #> $ Metric: chr "euclidean" #> - attr(*, "class")= chr "summary.dissimilarity"