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

Re: st: destring var, replace dpcomma

From   Svend Juul <SJ@SOCI.AU.DK>
To   <>
Subject   Re: st: destring var, replace dpcomma
Date   Sun, 20 Apr 2008 21:28:16 +0200

My data contains comma's as decimal points.

It looks like:
 RMR     EV      T
5,48    6,1   12,7
6,13      6   12,7
I want to destring it and replace comma with a period.

I have tried the following but it doesnt work. I get an error r198
'Invalid syntax'.
destring RMR, replace dpcomma
It works smoothly on my computer.
-destring-'s -dpcomma option was introduced in the 15oct2007 update
to Stata10. Maybe you need to update.
Hope this helps


Svend Juul
Institut for Folkesundhed, Afdeling for Epidemiologi
(Institute of Public Health, Department of Epidemiology)
Vennelyst Boulevard 6 
DK-8000 Aarhus C,  Denmark 
Phone, work:   +45 8942 6090 
Phone, home:   +45 8693 7796 
Fax:           +45 8613 1580 

*   For searches and help try:

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