Re: [R] creating variable that codes for the match/mismatch between two other variables

2013-02-25 Thread Jonas Walter
ying your procedure. Thanks again! Best, Jonas Zitat von PIKAL Petr : Hi -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Jonas Walter Sent: Monday, February 25, 2013 2:38 PM To: r-help@r-project.org Subject: [R] creatin

[R] creating variable that codes for the match/mismatch between two other variables

2013-02-25 Thread Jonas Walter
nes. min(mydat$match) [1] 1 > max(mydat$match) [1] 1 # example: row 1699: no match Stimulus - Prediction mydat$Stimulus[1699] == mydat$Prediction[1699] # [1] FALSE # but: mydat$match[1699] # [1] 1 How can I get the right coding? Where is the mistake? Thanks! Best, Jonas Walter