Entering edit mode
                    5.0 years ago
        Bioinfonext
        
    
        ▴
    
    480
    Hi,
I wanted to filter multiple columns based on the column header name from a large count data file.
Count data file;
count.txt  
                                 Soil.15.S8.L001             Soil.16.S9.L001      Soil.2.S1.L001        
d2ec9f3b77975c0f457e4b7413b217ff            84                      63            106                    
3147790f0d5a78316fb9dd64f53b9473            69                      49            95                  
97aecc1f35cc1f50db507ad71dd22367             0                      15            14               
bfad6370d28182cc6304844e9bec7fb6            271                     75            30
...
Column name file;
column.txt
Soil.15.S8.L001,Soil.16.S9.L001,Soil.2.S1.L001.........
.
Could you please suggest to me how I can get the above column name data from the count data file
Many thanks
I'm having trouble understanding what you want to do. Can you explain your question in more detail, and possibly provide a small example of the inputs and expected outputs?
sorry for that, I have updated it now with more details.
try:
#with dplyr