[R] merge 2 txt file

John Kane jrkrideau at yahoo.ca
Wed Nov 5 16:09:54 CET 2008

> From: Alessandro <alessandro.montaghi at unifi.it>
> Subject: [R] merge 2 txt file
> To: r-sig-geo at stat.math.ethz.ch, r-help at r-project.org
> Received: Tuesday, November 4, 2008, 6:52 PM
> Hi all,
> I have two txt file with X,Y,Z column and I need to merge
> together
> I tried 
> file_all <-
> merge("file1.txt","file2.txt")
> but I don't sure about the result. Is It this code
> correct?

Who knows?  We need some information on what the files contain and how you want to "merge" them.

The best thing to do is to follow the posting guidelines and provide a small working example of what the data looks like and what you are trying to do.

You might want to take a look at ?cbind and ?rbind.

More information about the R-help mailing list