Hi everyone I have a data frame (and a matrix because I have made one using my data frame to try to filter easily) with clasification of tumors based on RNA expresion. Some samples are clasificate as a different type of tumor depending on the method that the package of R used (it use a random forest method and a single-sample predictor based on similarity-to-centroid approach, with the Pearson coefficient as a similarity measure) I would like filter this data frame to know what samples don´t have the same classification using both methods (filter by rows whose columns don´t have the same value)
Example

In this data frame I would like filter and made one with COLON 3, COLON8 (COLON4) Sorry about my English and Thanks
1 answer
Let's take COLON4 as an example. To extract columns which COLON4 is CMS2.
Filtered <- YourData[, YourData["COLON4",] == "CMS2"]
Log in to answer this question.
You want to do this in R? Why is it a screen shot of Excel?
Hi, Because this example is real but I have changed sample name because I don´t want upload the real ID This is in R
Hello carcarre11!
We believe that this post does not fit the main topic of this site.
This is a question on R. 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!