Dear Ana,
I think something like
rbind(df1[,sort(names(df1))],
df2[,sort(names(df2))],
df3[,sort(names(df3))])
will do the job.
Regards,
Henrik
--------------------------------------------------------------------------
Henrik Aalborg Nielsen
Department of Mathematical Modelling
Section for Statistics Fax: +45 4588 1397
Time Series Group Phone: +45 4525 3418
Technical University of Denmark E-mail: han@imm.dtu.dk
Building 321, 2800 Lyngby, Denmark URL: http://www.imm.dtu.dk/~han
--------------------------------------------------------------------------
On Sat, 21 Oct 2000, Ana Sebastian wrote:
>
> Dear S-plus users,
> I have several (hudge) dataframes which I need to append. I was about to use
> "rbind", when I realised that the columns are not placed in the same order,
> for instance, frame 1's columns are placed: Name1 | Name2 | Name3...; 2nd
> frame 's columns are Name2| Name3| Name1|... and so on..
> How can I append frame 2 to frame 1 making sure that values under "Name1"
> keep always under "Name1" ??
> Thanks very much in advance for any help.
>
> Ana
> .-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
> Ana Sebastian Lopez
> EC-DG Joint Research Centre
> Space Applications Institute
> ARIS-Natural Hazards (TP 263)
> I-21020, Ispra (Va), Italy .
>
> Phone: 39 0332 786376
> Fax: 39 0332 785500
> email: ana.sebastian@jrc.it
> http://www.sai.jrc.it
> http://natural-hazards.aris.sai.jrc.it
>
>
> -----------------------------------------------------------------------
> This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
> send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
> message: unsubscribe s-news
>
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news
|