matrix_report | R Documentation |
The primary matrix used in social network analysis are the adjacency matrix or sociomatrix, and the incidence matrix.
matrix_report(A)
A |
A matrix |
This function return a report of some of the characteristics of the matrix.
Alejandro Espinosa-Rada
Wasserman, S. and Faust, K. (1994). Social network analysis: Methods and applications. Cambridge University Press.
A <- matrix(c(
1, 1, 0, 0, -1,
1, 0, 0, 1, 1,
0, 0, NA, 1, 1,
0, 1, 1, 0, 1,
1, 1, 1, 1, 0
), byrow = TRUE, ncol = 5)
B <- matrix(c(
1, 0, 0,
1, 1, 0,
0, NA, 0,
0, 1, 0,
0, 1, 1
), byrow = TRUE, ncol = 3)
matrix_report(A)
matrix_report(B)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.