Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: word count discrepancy


From   Richard Williams <[email protected]>
To   [email protected]
Subject   Re: st: word count discrepancy
Date   Tue, 05 Sep 2006 11:31:59 -0500

At 10:24 AM 9/5/2006, Feiveson, Alan H. (JSC-SK311) wrote:
Hello - It appears that the word count local function is giving a value
one too high. For example


. local ttt "aaa bbb ccc"

. local nt: word count of `ttt'

. di `nt'
4

I have Stata 9.2 Intercooled for Windows - born 8/28/2006

Have I overlooked something?
Yes.  The "of" should not be in there - it is being counted as a word.

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