powered by
Try to find exchange rate data in an environment, inverting if necessary.
.get_rate(ccy1, ccy2, env = .GlobalEnv)
chr name of 1st currency
chr name of 2nd currency
environment in which to look for data.
xts object with as many columns as practicable.
buildRatio redenominate
buildRatio
redenominate
# NOT RUN { # } # NOT RUN { EURUSD <- getSymbols("EURUSD=x",src='yahoo',auto.assign=FALSE) USDEUR <- .get_rate("USD","EUR") head(USDEUR) head(EURUSD) # }
Run the code above in your browser using DataLab