Off topic:Filtering columns in R
0
0
Entering edit mode
5.2 years ago
rose • 0

I have two datasets, and am trying to filer columns in R based on these. The first dataset has three columns; two identifiers and a SNP value. The second only has identifiers in one column.

I am trying to filter such that if the second data sets identifiers are in either of the first datasets columns, the row is not deleted. However, if the first dataset has identifiers that are not in the second date set, that row should be deleted. Can I use dplyr/something else to do so? I have been trying to define a subset of matches and then use this to filter but I'm not sure exactly how to best do so.

R data filtering set • 607 views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 2223 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6