Display the lower part of a matrix with a specified number of decimals.

lower(matrix, decimals = 3)

Arguments

matrix

a symmetric similarity/distance matrix

decimals

number of decimals to be displayed

Value

A data frame of characters.

Author

Modesto Escobar, Department of Sociology and Communication, University of Salamanca. See https://sociocav.usal.es/blog/modesto-escobar/

Examples

# From a random incidence matrix I(25X4) I <- matrix(rbinom(100, 1, .5), nrow = 25, ncol = 4, dimnames = list(NULL, c("A", "B", "C", "D"))) lower(sim(I, "Jaccard"), 2)
#> A B C D #> A 1.00 #> B 0.16 1.00 #> C 0.36 0.23 1.00 #> D 0.24 0.26 0.44 1.00