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
tumores Rfcms.RF.nearestCMS RFcms.pedictedCMS SScms.SSP.nearestCMS SScms.SSP.predictedCMS COLON1 CMS1 CMS1 CMS1 CMS1 COLON2 CMS3 CMS3 CMS3 CMS3 COLON3 CMS4 CMS4 CMS1 CMS1 COLON4 CMS2 NA CMS2 CMS2 COLON5 CMS2 CMS2 CMS2 CMS2 COLON6 CMS2 CMS2 CMS2 CMS2 COLON7 CMS4 CMS4 CMS4 CMS4 COLON8 CMS4 NA CMS2 NA COLON9 CMS2 CMS2 CMS2 CMS2 COLON10 CMS2 CMS2 CMS2 CMS2
In this data frame I would like filter and made one with COLON 3, COLON8 (COLON4) Sorry about my English and Thanks