Learn R Programming

netCoin (version 2.1.0)

lower: Similarity/distance matrix display.

Description

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

Usage

lower(matrix, decimals = 3)

Value

A data frame of characters.

Arguments

matrix

a symmetric similarity/distance matrix

decimals

number of decimals to be displayed

Author

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

Examples

Run this code
# 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)

Run the code above in your browser using DataLab