Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 205343

How to extract Currency Values from Multiple Strings stored in different ways?

$
0
0

I have multiple types of strings in a dataframe's colume like :

"Dear ... INR 2,36,22,217.29 on Date 2018-12-22 11:33:42 AM ..... No 8356111112294....."

with the currency being written broadly in INR XX, Rs. XX,Rs.XX,INRXX,RS XX , etc and other ways with/without commas like 2,30,000 and 230000 .

So I basically want to extract the Currency value i.e. 230000 in a new column in the data frame in R.

How can I do it for multiple strings with different sentence structures as well as different ways in which currency is written as explained above.

ALso I am a beginner so please explain the best way. Also if It's possible to solve this via ML (which I dont know how to use) then please lemme know.


Viewing all articles
Browse latest Browse all 205343

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>