search for: thissubj

Displaying 1 result from an estimated 1 matches for "thissubj".

2008 May 30
2
inconsistent output when using variable substitution
...t getting weird results. Each row has 1 trial in it, which includes a column for the subject number I get the list of subject numbers like so: > Subj=unique(sort(Trials$Subj)) Then I loop over them. But I get strange results. As a test, I tried the following: > i=1 > Subj[i] [1] 49 > thisSubj = subset(Trials,Trials$Subj==Subj[i]) > thisSubj$Ansr[1] [1] "abacus" > thisSubj = subset(Trials,Trials$Subj==49) > thisSubj$Ansr[1] [1] "able" I am expecting to get a result of "able" both times, since I know that Subj[i] is 49, when i=1. Clearly the two di...