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

st: RE: New variable


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: New variable
Date   Thu, 16 Jun 2005 18:57:34 +0100

whelp subinstr()

Nick 
n.j.cox@durham.ac.uk 

(No VCards please.) 

Fernando Augusto Proietti
 
> I have a huge data set. The ID variable is like that:
> 
> 05.81-0120
> 25.63-0208
> 
> and so on.
> 
> I want to create a ne ID1 variable, without the "." and the "-", and
> keeping the 0 before the first number:
> 
> 05810120
> 25630208

*
*   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