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

st: splitting variables


From   Jean Bouyer <[email protected]>
To   [email protected]
Subject   st: splitting variables
Date   Tue, 23 Nov 2004 13:50:08 +0100

I would like to split a variable into several ones, but there are no
separators. Thus I don't think I can use the split Stata command.
I only know that variable must be split every two digits. For
instance 123456 must be split into 12 34 and 56.
My problem is that I have to do that for about hundred variables and
that the number of digits is not the same for all the variables
(although it is always even).

Thanks for help
-- 

------------------------------------------------------------------------------------
Jean BOUYER
INSERM-INED U 569, HOPITAL DE BICETRE, 82 RUE DU GENERAL LECLERC
94276 LE KREMLIN-BICETRE CEDEX - FRANCE
-------------------------------------------------------------------------------------
*
*   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