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

st: RE: destring var, replace dpcomma

From   "Martin Weiss" <>
To   <>
Subject   st: RE: destring var, replace dpcomma
Date   Sun, 20 Apr 2008 21:14:20 +0200

-destring RMR , replace dpcomma- works perfectly for me. You need to provide more information. How did the data get there? 
For one, check that the variable is indeed called "RMR" and not var1, with the name "RMR" as the first observations. That is what happens when you paste these data into the data editor. 
Second, make sure these data are indeed aligned in the columns of your dataset. Pasting into the data editor, they sometimes cluster in the first column, and Stata cannot know what you mean.

Martin Weiss

Diplom-Kaufmann Martin Weiss
Mohlstrasse 36
Room 415
72074 Tuebingen

Fon: 0049-7071-2978184




-----Original Message-----
From: [] On Behalf Of Olga Lyashevska
Sent: Sunday, April 20, 2008 8:48 PM
Subject: st: destring var, replace dpcomma

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,

*   For searches and help try:

*   For searches and help try:

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