Entering edit mode
5.6 years ago
xxxxxxxx
▴
20
MU101188 MU101310 MU101326 MU10251
MU101188 1 0 0 0
MU101310 0 1 0 1
MU101326 0 1 1 0
MU10251 1 0 0 1
I need to extract all pairs of MU ids for which the value is equal to 1. I m using the following R script which gives me the row and column number, but I also want the names
Pmatrix = read.csv ("file.csv", header = TRUE, row.names = 1)
sig_values <- which(Pmatrix==1, arr.in= TRUE)
Hello xxxxxxxx!
It appears that your post has been cross-posted to another site: https://stackoverflow.com/q/55702350/680068
This is typically not recommended as it runs the risk of annoying people in both communities.