Re: [R] merge many files together using R

2012-06-14 Thread Rui Barradas
Hello, Suppose your files list is called 'flist'. And that your files have blanks as separators. dflist <- lapply(flist, read.table, header=TRUE, stringsAsFactors=FALSE) big <- do.call(rbind, dflist) You can get a list of all files you want with list.files(). See ?list.files Hope this hel

[R] merge many files together using R

2012-06-14 Thread sathya7priya
I have hundreds of text files which has data like a data frame with three columns.The column names are same in all the files.I need to merge all files into a single big file. My files are like this file1 "new.col" "ppm.p." "freq.p." "1_3_diaminopropane" 3.13859 5.67516 "1_3_diaminopropane" 3.137 6.