How can I read multiple files from multiple directories into R for processing?

后端 未结 4 1769
广开言路
广开言路 2021-02-09 04:10

I am running a simulation study and need to process and save the results from several text files. I have the data organized in such a way where there are sub directories and wit

4条回答
  •  忘掉有多难
    2021-02-09 04:43

    filenames <- list.files("path/to/files", recursive=TRUE) This will give you all the files residing under one folder and sub folders under it.

提交回复
热议问题