Subset Data Frame based on Multiple Unique Subject IDs

Hello community - i have to subset a data set of have and keep ROWS of data associated with a number of columns. It is a data set with 900 rows and i have to keep only 200 or so unique subject IDs. Here is an example of them:

032630P
032650P
032671P
032683P
032686P
032717P
032718P
032779P
D9952P
D9953P
.......ETC

Does anyone know the code i can use to quickly filter only these subject IDs from the data set if have while maintaining all of the data associated with them? Also, some of the IDs have more than one row of data associated with them.. do i need to account for that somehow?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.