search for: genere_d

Displaying 1 result from an estimated 1 matches for "genere_d".

Did you mean: genere_r
2010 Jun 04
1
Creating a maxtrix from "conditional prints"
...for (x in 1:10) { for (y in 1:10) { qui <- ifelse((mac[,1] == x) & (mac[,5] == y) | (mac[,1] == y) & (mac[,5] == x), 1, NA) quo <- cbind(mac,qui) qua <- subset(quo, qui ==1) if(nrow(qua) == 2) print(qua) }} result (wrong, now): ricevente genere_r abo_r classieta_r donatore genere_d abo_d classieta_d eta_d mismatch pra comp mum qui [1,] 8 0 1 3 9 1 1 4 56.17437 2 1 1 -6.645437 1 [2,] 9 1 1 2 8 0 1 3 48.77579 2 1 1 -5.905579 1 ricevente genere_...