[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: string question
You're looking for the -subinstr- function:
.gen newvar = subinstr(oldvar,".","",.)
The syntax shows that in each instance of oldvar, the "." character is to be replaced with an empty string, ""
You can find this in the online stata help by typing
. whelp strfun
...which will show you all the functions for manipulating strings.
John Wallace | Research Associate | Test Method Development
AFFYMETRIX, INC. | 3380 Central Expressway | Santa Clara, CA 95051 | Tel: 408-731-5574 | Fax: 408-481-0435
On Behalf Of Rodrigo Briceno
I have a variable that is coded with a carácter that I don't want to have
(The original variable is A03.1 for example and I want A031).
Is there a procedure in STATA to make this conversion?
* For searches and help try: