powered by
Scraps Le Boursier's and gets the historical prices for the specified companies.
stock(x)stocks(...)
stocks(...)
Company name as returned by the get_today() function
get_today()
Returns a data.frame containing all the historical data for the specified stock.
data.frame
date: the date of the given record.
date
open: the opening price of the stock on date.
open
high: the highest price.
high
low: the lowest price.
low
close: the closing price.
close
volume: Volume of stocks traded on date.
volume
If the plural variant is used it'll add a symbol column that'll contain the name of the company.
symbol
# NOT RUN { head(stock("Wafa Assur"), 20) head(stock(), 20) # same as runing stock("MASI") head(stock("MADEX"), 20) head(stocks("Masi", "MADEX"), 20) # }
Run the code above in your browser using DataLab