I'm fairly new to coding and hope I can get some help here on StackOverflow. I have a large dataframe with 16871 observations and 11 variables. I have another txt file with a list of 1118. I'd like to create a new dataset by selecting from the 16871, the exact 1118 rownames.
The line I'm using to subset it is:
JustTTXGenes<-SELECTED_ALEX_BRUSEQ_JULY2018[row.names(SELECTED_ALEX_BRUSEQ_JULY2018) %in% TTXResponseGenes,]
But for some reason, JustTTXGenes is coming up with 0 observations and 11 variables. Can someone help me?