but it is printing same columns and it is not printing whole file. what to do ?
ID adj.P.Val P.Value t B logFC Gene.symbol
8156043 7.92e-08 4.54e-12 -35.8 17.12755 -1.87 PSAT1
8114249 7.92e-08 1.63e-11 -31.5 16.233 -2 CXCL14
7912975 9.5e-08 2.45e-11 -30.3 15.93407 -1.33 ALDH4A1
After the lapply command you should end up with a list of data.frames that each only have the selected columns. What did you want to do with this list exactly?
I want to remove columns from the files and keep it as it is.i want them separate only
So do you want to save them as new files then?
yes but all should be separate. not in one