Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: RE: comas in numbrers


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: comas in numbrers
Date   Tue, 27 Apr 2010 21:05:07 +0200

<>

*************

 drop _all

input str10 a
"2,345"
"213"
"34,456"
"458"
end

destring a, generate(numerica) ignore(,)
l
*************


HTH
Martin

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of [email protected]
Sent: Dienstag, 27. April 2010 17:39
To: [email protected]
Subject: st: RE: comas in numbrers

Dear Statalist,

how do you handle numbers with a coma to indicate thousands?
I thank you before hand
Victor M. Zammit

 drop _all

 input a

a
1. 2,345
2. 213
3. 34,456
4. 458
5. end

.
end of do-file

 l

+-----+
a
-----
1.    2
2.  213
3.   34
4.  458
+-----+

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index