Displaying 1 result from an estimated 1 matches for "occulist".
Did you mean:
oculist
2008 Aug 07
2
List of "occurrence" matrices
...and I would like to sum all the combinations/occurences by a factor
(letter in this case) between variables and produce a list of
"occurrence" matrices. For example in this case the "occurrence"
matrix (first element of list) for factor "a" should look like this
>occulist
$a
var1 var2 var3 var4
var1 x 0 1 1
var2 0 x 1 2
var3 1 1 x 1
var4 1 2 1 x
$b
etc.
because there is two rows where var2 and var4 has "a"
DF[DF$var2=="a" & DF$var4=="a",]
Can you give an advice how to achieve this kind of a list of matrices?
-Lauri