9 months ago by
Walter and Eliza Hall Institute of Medical Research, Melbourne, Australia
read.delim() is designed to read just one text file, not a whole set of files. Did you mean to use edgeR::readDGE() instead?
But, if you're using Rsubread you should never to read in a text file at all. The Rsubread featureCounts() function produces an R object directly. You can save it to disk using save() and restore it using load(). There's no need to write text files or to read them with read.delim().
What documentation or example are you following?
Do you know how to read R help pages? When you get an error, you can type help("read.delim") and it will tell you the arguments that the function expects to get. If you know how to read the help page, it tells you what you need to know, i.e., why the code you tried gives an error.