Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Inserting a number into existing study ids


From   "Polis, Chelsea B." <cpolis@jhsph.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: Inserting a number into existing study ids
Date   Wed, 4 Feb 2009 08:54:23 -0500

Dear Statalisters,

I need to insert a zero between the first and second characters in a column of study IDs.  For example, K04945 must become K004945. Any clues on how to achieve this?

Many thanks!
Chelsea

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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