Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: Dataset Editing


From   [email protected]
To   Statalist <[email protected]>
Subject   st: Dataset Editing
Date   Mon, 20 Sep 2010 10:29:26 -0400 (GMT-04:00)

Below is a partial dataset. I would like to modify it so that x1 and x2 are on one line with their associated date. That is:

date           x1       x2
01jan2009	.2	.2
07jan2009	.09	.07

etc.

I have been trying to do this using replace, but sometimes x1 is missing and sometimes x2 is missing. So I come (on bended knee) to the LIST for assistance. Any suggestions would be greatly appreciated.

date	      x1	x2
01jan2009	.	.2
01jan2009	.2	.
07jan2009	.09	.
07jan2009	.	.07
13jan2009	.	.2
13jan2009	.19	.
19jan2009	.	.17
19jan2009	.18	.
25jan2009	.14	.
25jan2009	.	.15
31jan2009	.21	.
31jan2009	.	.21

Thanks.

reg jordan
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index