Statalist


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

[Fwd: Re: st: from value to varnames]


From   Richard Goldstein <richgold@ix.netcom.com>
To   statalist <statalist@hsphsun2.harvard.edu>
Subject   [Fwd: Re: st: from value to varnames]
Date   Tue, 19 May 2009 09:00:41 -0400


data error -- it turns out that some of the strings in "field" contained hypthens -- since varnames cannot contain hyphens, sxpose would not do the rename -- but gave me no error message -- sorry for the confusion

Rich

-------- Original Message --------
Subject: Re: st: from value to varnames
Date: Tue, 19 May 2009 08:06:24 -0400
From: Richard Goldstein <richgold@ix.netcom.com>
To: statalist@hsphsun2.harvard.edu

not on my machine -- I even downloaded a new copy of sxpose (from ssc)
and did exactly what you suggested (via cut-and-paste) and the new
varnames are _var# (258 of them)

so ...

Phil Schumm wrote:
On May 18, 2009, at 8:19 PM, Richard Goldstein wrote:
nope -- Nick's -sxpose- gives me variables with varnames _var1, etc -- which is of no use; sorry for not mentioning that I had already tried it


That's what the -firstnames- option does. Without it, you'll get variables named _var1, _var2, etc. With -firstnames-, you'll get variables named namea, nameb, etc.


-- Phil

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index