Statalist


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

st: numeric to string - transform from 1 to 01?


From   F V <fv020@yahoo.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: numeric to string - transform from 1 to 01?
Date   Thu, 6 Sep 2007 06:30:50 -0700 (PDT)

Hi,

I have a numeric variable, "ind" which goes from 1 to
20.

I want to convert it into a string variable "indstr",
that goes from 01 (as opposed to 0) to 20.

How can I achieve this?

Thanks.

Franco



      ____________________________________________________________________________________
Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center.
http://autos.yahoo.com/green_center/ 
*
*   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