Hi Hesham,
It think you are looking for something like this:
truth<-data.frame(G1=sample(LETTERS[1:4],20,TRUE),
G2=sample(LETTERS[1:4],20,TRUE))
truth
truth$G3<-as.numeric(truth$G1 == truth$G2)
truth
Note that like quite a few emails produced with Javascript formatting,
there are embedded charac
Please re-post in plain text. This is a plain text list and html can get
messed up, as here.
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Wed, Sep 2, 2020 a
2 matches
Mail list logo