Hi everyone, I am new to RStudio. I am working with a dataframe that consists of 5 columns: SampleID; chr; pos; ref; mut. These are variant calls from a large cohort of samples (>900 unique SampleIDs).
I want to filter this dataframe and create a new dataframe that includes rows only corresponding to a specific list of SampleIDs (~100 unique SampleIDs).
Is there a way I can import my list of desired SampleIDs, filter the original dataframe and create a new dataframe that consists only of the data from my list of SampleIDs?
Thank you so much in advance for your time.