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 at the end of May, and its replacement, statalist.org is already up and running.


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

RE: st: quick question


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: quick question
Date   Wed, 17 Feb 2010 18:04:55 -0000

I agree with Martin. There is no reason for -split- to choke on the
variable name. The original author of -split- agrees too. There is some
other reason for Tony's problem here. 

Nick 
n.j.cox@durham.ac.uk 

Martin Weiss

" many solutions used the split command - it choked on the variable
other_rash - apparently it didn't like the underscore.  I renamed the
variable otherrash and it sort of worked, but gave me some strings and
some
numeric.  "

I do not buy the story about the underscore. Either a variable name is
legal
(according to the conventions set out in [U], 11.3), then all Stata
commands
will accept it "no questions asked", or it is not, which would prompt
Stata
to reject it the moment you try to introduce it.


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