Statalist The Stata Listserver


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

RE: st: word count discrepancy


From   "Feiveson, Alan H. (JSC-SK311)" <[email protected]>
To   <[email protected]>
Subject   RE: st: word count discrepancy
Date   Tue, 5 Sep 2006 10:54:08 -0500

"of" course!

Thank you, Rich.

Al F. 

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Richard
Williams
Sent: Tuesday, September 05, 2006 11:32 AM
To: [email protected]
Subject: Re: st: word count discrepancy

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/

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