s-news
[Top] [All Lists]

Combine dataframes different columns

To: <s-news@lists.biostat.wustl.edu>
Subject: Combine dataframes different columns
From: "Bert Jacobs" <b.jacobs@pandora.be>
Date: Fri, 7 Oct 2005 12:56:49 +0200
In-reply-to: AAAAAOXvfE/tUWVMujI1J0cWactkniAA
Thread-index: AcXLEprS4fXDvLaFQ5ykBw5jcS/i8AAGiwiQ
Using S-Plus 6.2 for Windows XP

Hello,
I could use same help on merging two datasets

Dataframe 1 has as structure

            A B C D E F G H I J  (= column names)
Row 1       1   2 3 4 5 6 7 8 9 10      

Dataframe 2 has as structure

            A D E I J  (= column names)
Row 1       1   2 2 1 1 

And I'd like to become the following dataframe

            A B C D E F G H I J  (= column names)
Row 1       1   2 3 4 5 6 7 8 9 10      
Row 2     1 0 0 2 2 0 0 0 1 1

What's the easiest way to do this? Any thoughts are welcome.

Kind regards,
Bert


<Prev in Thread] Current Thread [Next in Thread>