Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Unique identifier from a string name

From   Barry Quinn <>
To   "statlist (" <>
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                             
185 Stramillis Road               
Northern Ireland                             @niperino
BT9 5EE                      

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index