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]
Re: st: wordcount() undocumented limitation?
From
Nick Cox <[email protected]>
To
[email protected]
Subject
Re: st: wordcount() undocumented limitation?
Date
Fri, 31 Aug 2012 18:14:44 +0100
It's documented at -help limits- qua length of a string in a string
expression. Also documented at [U] 18.3.4.
The key point is what you found is not specific to -wordcount()-, but generic.
See also
SJ-8-4 pr0045 . . . . . . . . Stata tip 70: Beware the evaluating equal sign
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . N. J. Cox
Q4/08 SJ 8(4):586--587 (no commands)
tip explaining the pitfall of losing content in a macro
because of limits on the length of string expressions
Nick
On Fri, Aug 31, 2012 at 4:48 PM, Rob Ploutz-Snyder
<[email protected]> wrote:
> Thanks Daniel.
>
> I figured there was a limit.
>
> Seems to me that until this limitation is "fixed," the help file
> where the wordcount() is described should remind us about it. Perhaps
> I'm too needy for reminders?
>
> Rob
>
>
>
> On Fri, Aug 31, 2012 at 10:27 AM, daniel klein
> <[email protected]> wrote:
>> What bites here is the 244 character limits for strings (expressions).
>> This is documented in -help limits-. From what I understood at this
>> years German Stata Users Group Meeting, this limitation will be
>> "fixed" in Stata 13.
>>
>> Best
>> Daniel
>>
>> --
>> Happy Friday Statalisters.
>>
>> I bumped into an unexpected blip with the wordcount() function that
>> I'm puzzled by.. It seems to stop part-way through a long string, so
>> I must have hit some (undocumented?) limit of the wordcount() string
>> function.
>>
>> It seems strange to me that the wordcount() string function shouldn't
>> produce the same result as the extended macro function.. maybe I'm
>> missing something?
*
* 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/