R 3.0.3 rbind multiple csv files

后端 未结 2 1898
失恋的感觉
失恋的感觉 2020-12-19 08:19

R 3.0.3: I have 40 csv files all structured the same that I want to rbind into one file so I can calculate the mean of one column.

I searched:

2条回答
  •  既然无缘
    2020-12-19 09:06

    In more contemporary plyr approach:

    files <- list.files(...)
    data <- adply(files, 1, read.table)
    

    (it's saturday afternoon: untested code, but the approach is fine)

提交回复
热议问题