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)" <alan.h.feiveson@nasa.gov>
To   <statalist@hsphsun2.harvard.edu>
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: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Richard
Williams
Sent: Tuesday, September 05, 2006 11:32 AM
To: statalist@hsphsun2.harvard.edu
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index