| |
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: Data management question
Actually I have been struggling with -merge- and -joinby-
without any success for some time. I shall try -cross-
now.
Thanks everyone!
Suryadipta.
On Sat, 02 Jun 2007 18:27:29 -0500
Richard Williams <[email protected]> wrote:
At 04:41 PM 6/2/2007, Roy,Suryadipta wrote:
I am trying to merge these two datasets such that the new
dataset is of the form:
id id1 code code1
1 3 a c
1 4 a d
2 3 b c
2 4 b d
3 3 c c
3 4 c d
4 3 d c
4 4 d d
The -cross- command looks like it might do what you
want.
-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME: (574)289-5227
EMAIL: [email protected]
WWW: http://www.nd.edu/~rwilliam
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
Suryadipta Roy, Ph.D.
Department of Economics,
Lawrence University,
115 South Drew Street,
Appleton, WI-54911.
Phone: 920-832-7343.
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/