Hi Stata Users,
I am having a string variable that has currency and would like to remain with numeric part as shown below
Does anyone has any hints on how I can achieve this?
Thanks in advance!
I am having a string variable that has currency and would like to remain with numeric part as shown below
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str26 original float clean "USD 1000" 1000 "2500 United States Dollars" 2500 "INR 50" 50 "1876" 1876 "470" 470 end
Thanks in advance!
Comment