Entering edit mode
annkolman78
•
0
@annkolman78-21980
Last seen 5.4 years ago
Hi,
I would like to remove certain numbers of my samples from the rds-summarizedexperiment file. How I can do it using a file contains the samples I want to retain. I can do it with one sample (test = data[, data$SAMPLEID == "451", ) but not sure how I can do it with a list. Thank you for your help.
Anna
Thank you, it worked, and instead of manually writing all samples ID , can I use a file with all my samples I want to keep? for example: head(samplestostay) SampleID 1 39 2 4 3 6 4 400 5 481 6 500 451
Yes. You just need a character vector of the IDs you want to keep. There are many ways of doing so, including reading in a file.