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: wordcount() undocumented limitation?


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
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
<robploutzsnyder@gmail.com> 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
> <klein.daniel.81@googlemail.com> 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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index