Skip to content
Prev 262219 / 398502 Next

accessing files from subfolders

Try this:

lapply(dir("myPathDir", recursive = TRUE, pattern = "myFile.txt$",
full.names = TRUE), readLines, warn = FALSE)
On Wed, Jun 8, 2011 at 6:35 PM, J <jonsleepy at gmail.com> wrote: