[R] How to read percentage and currency data?

Hrishi Mittal hrishimittal at gmail.com
Wed Feb 24 13:39:32 CET 2010


Thanks Ista, that's sort of what I'm doing at the moment. But my problem is
that I don't always know if the data has such symbols or signs in them. I
can do a gsub on the entire dataset but I also need to preserve the currency
signs to deal with multiple columns with different currencies. Doing string
replacement on all of them would be messy. I would also have to save the
currencies as an index in another vector to preserve the meaning of the
data. So I was hoping there is a more elegant way to do it, considering the
wide usage of R in the finance world.

-----
Try  http://prettygraph.com Pretty Graph , the easiest way to make R-powered
graphs on the web.
-- 
View this message in context: http://n4.nabble.com/How-to-read-percentage-and-currency-data-tp1567318p1567401.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list