Learn R Programming

RFinanceYJ (version 0.3.1)

quoteFXTsData: quote foreign exchange rate from Yahoo!-finance-Japan

Description

quote foreign exchange rate from Yahoo!-finance-Japan

Usage

quoteFXTsData(x, since = NULL, start.num = 0, date.end = NULL, time.interval = 'daily')

Arguments

x
ex: USDJPY=X
since
'YYYY-MM-DD' ex:'2009-01-01'
start.num
offset. ex:50
date.end
'YYYY-MM-DD' ex:'2009-01-01'
time.interval
Data frequency.Possible types are 'daily','weekly', or 'monthly'.

Value

A Data frame. ( $date, $open, $height, $low, $close)

Examples

Run this code
## Not run: 
# fx <- quoteFXTsData("USDJPY=X")
# head(fx)
# fx <- quoteFXTsData("USDJPY=X",since="2009-01-01",date.end="2010-05-31",time.interval="monthly")
# head(fx)
# ## End(Not run)

Run the code above in your browser using DataLab