Statalist The Stata Listserver


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

st: Re: Removing commas & periods from numbers


From   Friedrich Huebler <[email protected]>
To   [email protected]
Subject   st: Re: Removing commas & periods from numbers
Date   Tue, 24 Jan 2006 11:53:13 -0800 (PST)

Raphael,

No need for an ado file. See -help subinstr-.

replace var = subinstr(var,"$","",.)

Friedrich Huebler

--- Raphael Fraser <[email protected]> wrote:
> Is there any ado file that can remove the following :
> "$" , "," and "." from the data set below
> For e.g.
> 
>         $690.00
>      $1,000.00
>      $1,000.00
>      $7,000.00


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index