Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Barry Quinn <b.quinn@qub.ac.uk> |
To | "statlist (statalist@hsphsun2.harvard.edu)" <statalist@hsphsun2.harvard.edu> |
Subject | st: Unique identifier from a string name |
Date | Thu, 24 Nov 2011 11:25:18 +0000 |
Dear Statalist, I would like to create a uniquely identified numerical code from a string variable by ideally converting each letter of the string into a number (but any other solutions that could create a unique identifier from a string are welcomed). Is there some way of reversing the function char() to do this ? Many thanks Barry Quinn Lecturer in Finance Queens University Belfast Tel: 028 9097 4824 Riddel Hall www.qub.ac.uk/mgt 185 Stramillis Road www.barryquinn.com Belfast b.quinn@qub.ac.uk Northern Ireland @niperino BT9 5EE * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/