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

st: simple question on string variables


From   "Brenkers, Randy" <Randy.Brenkers@econ.kuleuven.ac.be>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: simple question on string variables
Date   Wed, 4 Feb 2004 18:06:05 +0100

Hello,
I have a string variable "id".
id
a1
a2
a3
a4 
a12
a13
b1
b2
b20
...

How can I create a string variable that contains only the first letter of each observation?

Thanks

Randy Brenkers
PhD student Applied Economic Sciences
KULeuven

Naamsestraat 69 04.143
3000 Leuven
Belgium

Tel:+32(0)16326952


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