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: Dropping variables in USE statement


From   William Sankey <wsankey@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Dropping variables in USE statement
Date   Thu, 28 Mar 2013 09:56:55 -0400

Hi Statalist,

Is there a way to drop variables on the use statement? I am bringing
in Stata dataset with too many variables (transferred over from SAS
which is a pain to drop variables because I don't think I can drop
variables with a *).

Ideally I would like to process use DATASET, drop D4* D5* D6* etc

Anyway to approach this besides going back to the original dataset in SAS?

Thanks,
Will

--
William J. Sankey
Johns Hopkins University
MA Public Policy '12
*
*   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