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

2013-02-25 Thread PIKAL Petr
Hi > -Original Message- > From: Jonas Walter [mailto:jonas.wal...@student.uni-tuebingen.de] > Sent: Monday, February 25, 2013 4:25 PM > To: PIKAL Petr > Cc: r-help@r-project.org > Subject: RE: [R] creating variable that codes for the match/mismatch > between two ot

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

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

2013-02-25 Thread 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] creating variable that codes for the match/mismatch &

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

2013-02-25 Thread Jonas Walter
Dear all, I have got two vectors coding for a stimulus presented in the current trial (mydat$Stimulus) and a prediction in the same trial (mydat$Prediciton), respectively. By applying an if-conditional I want to create a new vector that indicates if there is a match between both vectors in th