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

st: RE: New variable


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: New variable
Date   Thu, 16 Jun 2005 18:57:34 +0100

whelp subinstr()

Nick 
[email protected] 

(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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index