Re: [R] merge 2 txt file

From: John Kane <jrkrideau_at_yahoo.ca>
Date: Wed, 05 Nov 2008 07:09:54 -0800 (PST)


> 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.



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 05 Nov 2008 - 15:12:31 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 05 Nov 2008 - 15:30:22 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive