Statalist


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

st: destring var, replace dpcomma


From   "Olga Lyashevska" <olga.stata@herenstraat.nl>
To   statalist@hsphsun2.harvard.edu
Subject   st: destring var, replace dpcomma
Date   Sun, 20 Apr 2008 20:47:41 +0200 (CEST)

Dear List,

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

Could you suggest anything?

Thanks in advance,
Olga

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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