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

st: string function problem


From   Ricardo Ovaldia <ovaldia@yahoo.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: string function problem
Date   Tue, 19 Aug 2003 19:51:00 -0700 (PDT)

Dear all,

Is there a bug in -string()- or I'm doing something
wrong. For example I have the following data:

                   a1
  1.         12345678
  2.         12345679
  3.         12345678
  4.         12345678
  5.         12345679

. gen y=string( a1,"%16")
(5 missing values generated)

. cl a1 y

                   a1          y
  1.         12345678           
  2.         12345679           
  3.         12345678           
  4.         12345678           
  5.         12345679           
  6.         12345678           
  7.         12345679           
  8.         12345678           
  9.         12345678           
 10.         12345678           

What I'm doing wrong? -y- is missing everywhere.

Thanks,
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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index