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, statalist.org is already up and running.


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

st: Keep data according to one data file's varlist


From   Zhangqunzi <zhangqunzi@googlemail.com>
To   Stats <statalist@hsphsun2.harvard.edu>
Subject   st: Keep data according to one data file's varlist
Date   Wed, 7 Nov 2012 19:41:10 +0100

Dear all,

I have two dta files, first one with variables : var 1 2 3 4 5
Second one with 
Variables: vart 1 3 5

As their names.

Now I would like to drop the extra variables in data file 1 which are var 2 4.

Can u suggest me how can I realize this?
Thank a lot
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


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