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: st: From: Χρυσούλα Γιαννικοπούλου <[email protected]>


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: RE: Re: st: From: Χρυσούλα Γιαννικοπούλου <[email protected]>
Date   Tue, 10 Aug 2010 12:49:13 +0200

<>

This code could be followed by

***********
destring num, replace ignore(.) dpcomma
***********


Otherwise, the "num" variable remains pretty useless for any calculations...

HTH
Martin


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Tirthankar Chakravarty
Sent: Dienstag, 10. August 2010 12:28
To: [email protected]
Subject: st: Re: st: From: Χρυσούλα Γιαννικοπούλου <[email protected]>

Try this:
**********************
clear*
input str20 num
44.311.90
7.660.60
2.964.52
1.229.357.80
1.376.146.80
279.161.53
856.551.10
end
compress
replace num = reverse(subinstr ///
	(reverse(num), ".", ",", 1))
li
**********************

T

2010/8/10  <[email protected]>:
> Hi all,
>
> how can format these numbers
> 44.311.90
> 7.660.60
> 2.964.52
> 1.229.357.80
> 1.376.146.80
> 279.161.53
> 856.551.10
> so that the last "." to be "," ?
>
>
> thanks a lot!!
>
> chrysa
> *
> *   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/
>



-- 
To every ω-consistent recursive class κ of formulae there correspond
recursive class signs r, such that neither v Gen r nor Neg(v Gen r)
belongs to Flg(κ) (where v is the free variable of r).

*
*   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