Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Shaping dataset.

From   natasha agarwal <>
Subject   st: Shaping dataset.
Date   Wed, 28 Nov 2012 12:53:34 +0000

Dear All,

I have a dataset that looks like:
                                          Agricultural Industry
Mining Industry
Agricultural product                   0.10
Mining Product                          0.30

I want to transform it to

Agricultural product    agricultural industry   0.10
Agricultural product   mining industry             0.20
mining product          agricultural industry       0.30
mining product          mining industry             0.30

The reshape command would not work for obvious reasons.

I was wondering if anybody could help me with the same?

*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index