Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: encoding unique letter into a unique number for combined combinations


From   "T.J. Volant" <[email protected]>
To   [email protected]
Subject   st: encoding unique letter into a unique number for combined combinations
Date   Wed, 14 Feb 2007 06:14:03 -0800 (PST)

Hello all,

My apologies if this questions seems primitive. How
can I program so that it will encode each unique
letter into a unique number? Example:
I got hundreds of combinations of strings like:
ABC
ABB
ACA
Then, encode only gives me 1,2,3 in order. But I would
like to label letter A=01, B=02, C=01 etc, and then
have encode give me 010203, etc. How can I program
this? 
Thank you very much,



Tj




 
____________________________________________________________________________________
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121
*
*   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