Hey Stata community,
I want to destring a variable by the normal command:
destring variable, gen(newvariable)
Unfortunately, Stata tells me that I have non-numeric characters and that it can not destring the variable, although all characters are numbers. Maybe someone knows how to solve this problem.
I already tried to list the non-numeric characters, but here again: nothing shown.
Kind regards!
Here is part of my dataset:
I want to destring a variable by the normal command:
destring variable, gen(newvariable)
Unfortunately, Stata tells me that I have non-numeric characters and that it can not destring the variable, although all characters are numbers. Maybe someone knows how to solve this problem.
I already tried to list the non-numeric characters, but here again: nothing shown.
Kind regards!
Here is part of my dataset:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input int PZN str5 preis str6(fb difference) 655 "18,54" "18,55" "-0,01" 3056 "86,77" "108,89" "-22,12" 3458 "86,94" "89,70" "-2,76" 5291 "17,21" "17,21" "0,00" 5925 "17,21" "17,21" "0,00" 6267 "51,94" "52,90" "-0,96" 7350 "32,32" "33,62" "-1,30" 8125 "26,31" "26,31" "0,00" 8131 "35,37" "35,46" "-0,09" 8148 "57,27" "57,18" "0,09" 9923 "18,79" "24,38" "-5,59" 9946 "27,98" "36,76" "-8,78" 9952 "11,94" "12,42" "-0,48" 9969 "13,05" "13,52" "-0,47" 9975 "13,61" "14,52" "-0,91" 10518 "29,65" "29,65" "0,00" 10636 "52,65" "57,18" "-4,53" 10760 "20,83" "15,72" "5,11" 10808 "15,85" "8,50" "7,35" 11162 "28,07" "12,14" "15,93" 11280 "16,30" "12,32" "3,98" 11297 "20,86" "12,89" "7,97" 11305 "24,03" "14,04" "9,99" 11788 "70,02" "70,08" "-0,06" 12486 "14,49" "15,95" "-1,46" 12813 "24,22" "24,22" "0,00" 12842 "31,76" "31,76" "0,00" 12931 "60,52" "67,96" "-7,44" end
Comment