Skip to content
Prev 385583 / 398503 Next

(i want change G3 and G2 to variable tke all elements in rows) (truth[(truth[, 1]=="G3" & truth[, 2]=="G2") | (truth[, 1]=="G2" & truth[, 2]=="G3"), 3]<-1

Hi

You still fail to send your message in plain text, so it is unreadable.

If I managed to decipher it correctly what you wanted you probably could set 2 
related logical expression and considering that FALSE is 0 and TRUE is 1 you 
get desired result.

Cheers
Petr