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]
Re: st: Keep data according to one data file's varlist
From
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: st: Keep data according to one data file's varlist
Date
Wed, 7 Nov 2012 18:46:27 +0000
Sounds like
. drop var2 var4
Nick
On Wed, Nov 7, 2012 at 6:41 PM, Zhangqunzi <[email protected]> wrote:
> 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.
*
* 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/