Debugged rRepSurvey, some bug remains, poss. with names in dtd column in rSurvey if repeated 0's are combined with non-zeros? Check. Also building prototype of vectorised version of rSurvey (rSurvey_new.r)