Convert foreign currency to USD

I want to convert foreign currency to USD, which is rupees. My own attempt to do it resulted in errors.

c(3897, 7662, 13882, 6218, 13302, 3873)

So far, I have tried the following codes:

library (formattable)
currency(data$Price, "USD", sep = " ")
library(gt)
fmt_currency(data, Price, "USD")

This can be done using trunc(data$Price * .0122447), but I'd like to know if it can be done with package.

Hi, you're just displaying it in a table in your code.

You could use a package like:

priceR | Economics and Pricing in R (stevecondylios.github.io)

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.