Displaying 1 result from an estimated 1 matches for "ansmin3".
Did you mean:
ansmini3
2006 Nov 24
2
vector problem
...his
100 0 0
20 80 0
40 10 50
Here´s my loop:
for(s in 1:length(fr))
{
### ansmini is a complete survey of one participant
ansmini3=answers[relevant[s,],]
for(x in 1:length(qidsb3))
{
# outputs all answer ids out of all data which belong to the qids
out of the question id vector
ansmin3=ansmini3[,1][ansmini3[,3]==qidsb3[x]]
newb3=rbind(newb3,ansmin3)
}
}
this is doing the job for question with only one answer, so i have
only one answer id.
in this new case i have 1-3 possible answers.. that´s why i´am not
getting a nice newb3 matrix...
i´d really be happy about some ad...