Question: (Closed) Filtering columns in R
0
gravatar for rose
17 months ago by
rose0
rose0 wrote:

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.

data filtering set R • 327 views
ADD COMMENTlink written 17 months ago by rose0

Hello rose!

We believe that this post does not fit the main topic of this site.

This is a pure R question. Please search StackOverflow

For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.

If you disagree please tell us why in a reply below, we'll be happy to talk about it.

Cheers!

ADD REPLYlink written 17 months ago by RamRS27k
Please log in to add an answer.
The thread is closed. No new answers may be added.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1575 users visited in the last hour