Description Usage Arguments Value References Examples
View source: R/get_di_matrix.R
Transforms a frequency interaction sociomatrix (valued data) into a dichotomized 1/0 matrix
1 | get_di_matrix(m, type = "wl")
|
m |
A matrix with individuals ordered identically in rows and columns. |
type |
Determines the type of dichotomized matrix to be returned.
|
A dichotomized win/loss or presence/absence matrix.
Appleby, M. C. 1983. The probability of linearity in hierarchies. Animal Behaviour, 31, 600-608.
1 2 |
Dz He De Ho Lu Ki
Dz NA 0 0 0 0 0
He 1 NA 0 0 0 0
De 1 1 NA 0 0 0
Ho 1 0 1 NA 0 0
Lu 1 1 1 1 NA 0
Ki 1 1 1 1 1 NA
A B C D E F G H I J K L
A 0 0 0 1 0 0 1 0 0 0 0 0
B 1 0 0 1 0 0 0 0 0 0 0 0
C 0 1 0 0 0 0 0 0 1 0 0 1
D 0 0 0 0 0 0 0 0 0 0 0 1
E 0 1 0 0 0 0 0 0 0 0 0 0
F 0 0 1 1 0 0 1 0 0 0 0 0
G 0 1 0 0 0 0 0 0 0 0 0 1
H 1 1 1 1 1 1 1 0 1 1 1 1
I 0 1 0 1 1 0 1 0 0 0 0 0
J 1 1 1 1 1 1 1 0 1 0 1 1
K 1 1 1 1 1 1 1 0 1 0 0 1
L 0 1 0 0 0 1 0 0 0 0 0 0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.