search for: ansmini

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

Did you mean: ansmini3
2006 Nov 24
2
vector problem
...each participant) answers vectors for one participant could look like: p1: 100 p2: 20 80 p3: 40 10 50 i have the following loop which should rbind them but i get no proper matrix. i´d like to have something like this 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) } } thi...