[R-sig-Geo] joining 'n' tables in R
Roger Bivand
Roger.Bivand at nhh.no
Mon Jun 12 19:33:04 CEST 2006
On Mon, 12 Jun 2006, Sorin Cheval wrote:
> Hello,
>
> I need to join 110 tables (.txt files) in R based on a
> common field. If anyone has a suggestion, I'd
> appreciate a lot.
Perhaps have a look at ?merge, and try it out on a simple example first.
It merges data.frame objects, and the by=, by.x= and by.y= arguments can
be used to define the common field. Watch sort=, because by default the
rows will be sorted.
>
> Thanks,
> Sorin Cheval
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
--
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no
More information about the R-sig-Geo
mailing list