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.