Hello,
I have some 20 rounds of a survey where each respondent has a unique ID. Some IDs reappear in the following surveys, some do not. The following surveys have new respondents who were not present in previous survey rounds. I want to filter only those IDs that were present in all survey stages. I combined all ID variables in a single data set with 20 variables, but I'm not sure how to check all of them at the same time for the values that appear in all variables. Here's an example of the data:
So, for example, I need to see if the value of "V012630001S55310123330013" appears in S2 AND S3 AND ... S20.
Thank you!
I have some 20 rounds of a survey where each respondent has a unique ID. Some IDs reappear in the following surveys, some do not. The following surveys have new respondents who were not present in previous survey rounds. I want to filter only those IDs that were present in all survey stages. I combined all ID variables in a single data set with 20 variables, but I'm not sure how to check all of them at the same time for the values that appear in all variables. Here's an example of the data:
S1 | S2 | S3 |
V012630001S55310123330013 | V019740001S15410815060012 | V030010006S10160105900112 |
V012630001S55310666920012 | V019740001S16410444180013 | V030010006S10160107710122 |
V012630001S55310737830011 | V019740001S30410254100013 | V030010006S10160207700122 |
V012630001S55310757820012 | V019740001S35410998670013 | V030010006S10160459420112 |
Thank you!
Comment