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

st: string variable

Subject   st: string variable
Date   Mon, 12 Nov 2007 22:41:14 +0100

Dear statalist,
I want to convert a string variables(type: T0274K0VH550101) in numeric. I try to use the commands destring and encode, but with the first I din't have any result, while with the second I have this error:
encode codind, gen(id)
too many values
with destring I have
destring codind, generate(id) force
codind contains non-numeric characters; id generated as byte
(128147 missing values generated)

exist another solution?
thanks in advance for your help.

* For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index