search for: ansr

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

Did you mean: ansi
2008 May 30
2
inconsistent output when using variable substitution
...ncludes 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 different "thisSubj=..." lines are not returning...