search for: my_new_file_nam

Displaying 2 results from an estimated 2 matches for "my_new_file_nam".

Did you mean: my_new_file_name
2009 Mar 30
1
how to input multiple .txt files
how to input multiple .txt files? A data folder has lots of .txt files from different customers. Want to read all these .txt files to different master files: such as: cust1.xx.txt, cust1.xxx.txt, cust1.xxxx.txt,.............. to master file: X.txt cust2.xx.txt, cust2.xxx.txt, cust2.xxxx.txt,.............. to master file: Y.txt Thanks! [[alternative HTML version deleted]]
2009 Apr 01
0
回复: R-help Digest, Vol 73, Issue 32
...sage-ID:     <37fda5350903300455y4fca4f73h792cd88e375e4468@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 my_files = list.files(path=path_to_my_files,pattern='.txt',full.names=TRUE) a=NULL for(this_file in my_files){     a=rbind(a,read.table(this_file)) } write.table(a,my_new_file_name) On Sun, Mar 29, 2009 at 10:37 PM, Qianfeng Li <qflichem@yahoo.com> wrote: > > > how to input multiple .txt files? > > A data folder has lots of .txt files from different customers. > > Want to read all these .txt files to different master files: > > such as: &...