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

st: The last four digits


From   "jtuesta" <[email protected]>
To   [email protected]
Subject   st: The last four digits
Date   Mon, 8 Dec 2003 19:02:39 -0500

Dear Statalisters,

I have a numerical variable in my data, its name is �nacimi�
I would like to separate the last four digits for to have two variables. For 
example:

I have 


   nacimi       
   01041974          
   01051973          
   07041975          
   08061972          

I�d like:

nacimi-1      nacimi-2
0104           1974
0105           1973
0704           1975
0806           1972


Thanks in advance!

--
Open WebMail Project (http://openwebmail.org)

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