Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: length(s) question


From   "Ypma, Jelmer Yeb" <[email protected]>
To   <[email protected]>
Subject   st: RE: length(s) question
Date   Mon, 25 Oct 2004 13:53:52 -0700

Hi Julia,

> I write:  generate long = length (vp40_11), vp40_11 is the 
> string varible
> whose length I want.
> Error message reads:  "too few variables specification","r(102)"
> However, the help section says to write
> "generate varname = exp" and exp in this case is length (s), 
> where "s" is
> the string variable.

"long" is already used for something else in Stata, so you have to choose a different name. E.g.
generate long_vp40_11 = length (vp40_11)

Jelmer

--------------------

This email message is for the sole use of the intended recipient(s) and
may contain privileged information. Any unauthorized review, use,
disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and destroy all copies
of the original message.



*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index