In the script I am running there is this line:
fls <- list.files("./tophat_all", pattern="bam$", full.names = T)
Is there any possible way to list files from different directories, like below?
fls <- list.files("D:/tophat_all/nmtasync_R1noT.bam", "D:/allfiles/tophat_all/wtasync_R1noT.bam", "C:/etc./tophat_all/wtasync_R2noT.bam", pattern="bam$", full.names = T)
My life will be way easier if I can do that!
c()
around paths??list.files
shows the path argument takes a character vector (not entirely clear why you're listing files already specified by their absolute path but ok).