[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: length(s) question
> 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)
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: