Learn R Programming

RFinanceYJ (version 0.3.1)

quoteStockTsData: quote Japanese stock market from Yahoo!-finance-Japan

Description

quote Japanese stock market from Yahoo!-finance-Japan

Usage

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

Arguments

x
. ex: 4689.t
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, $volume )

Examples

Run this code
## Not run: 
# stock <- quoteStockTsData('4689.t')
# head(stock)
# stock <- quoteStockTsData('4689.t', since='2009-01-01',date.end='2009-12-31')
# head(stock)
# stock <- quoteStockTsData('4689.t', since='2009-01-01',
#                           date.end='2009-12-31',time.interval='monthly')
# head(stock)
# plot(stock$date, stock$close, type="l", col="blue")
# ## End(Not run)

Run the code above in your browser using DataLab