Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: string function problem


From   Ricardo Ovaldia <[email protected]>
To   [email protected]
Subject   Re: st: string function problem
Date   Wed, 20 Aug 2003 05:26:45 -0700 (PDT)

--- Joseph Coveney <[email protected]> wrote:

> The formatted string function needs to have the
> format specified as a
> numeric type, that is, "%16.0f" and not "%16".

Thank you Joseph. I had actually typed

. generate y = string( a1,"%16s")

(It was wrong in my post)

I though that the format had to be a string format.
According to the help file:

"string(n,"%fmt") converts n into a string with %fmt
display format."

Best,
Ricardo.


=====
Ricardo Ovaldia, MS
Statistician 
Oklahoma City, OK

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
*
*   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