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: RE: How to generate a variable list in a huge data set?


From   Nick Cox <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: RE: How to generate a variable list in a huge data set?
Date   Thu, 31 Mar 2011 18:24:05 +0100

You can get, or use, a varlist with all variables, if that is what you want, in several ways. Here are five. 

1. unab  

2. describe, varlist 

3. ds 

4. findname (SSC) 

5. foreach v of var * { 


Nick 
[email protected] 

Nicolás Rojas

I am working with a merged data set
that has more than 400 variables and  I was trying to generate
variable list of the form:

var1 var2 var3

I tried to use describe, fullnames to get the list and then copy as a
table but the result is very messy. Does anybody knows a command or an
easiest way to do that?


*
*   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