Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

st: editing of a variable content in stata

From   [email protected]
To   [email protected]
Subject   st: editing of a variable content in stata
Date   Fri, 28 Jan 2011 19:22:15 +0000 (GMT)

I have a variable that is a code identifier for firms. it contains letters and 
numbers. I would like to remove the first two digits  (these are letters) and 
the last one from each firm identifier. Is this possible in stata?
Firm   Code 

irm1   If7890 

Firm2 Fr5671 

Firm3 er4560 
I would like to have at the end:
Firm   Code 

Firm1  789 

Firm2  567 

Firm3  456 

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index