stock: Stock prices

Description Usage Arguments Value Examples

View source: R/stock.R

Description

Scraps Le Boursier's and gets the historical prices for the specified companies.

Usage

1
2
3

Arguments

x, ...

Company name as returned by the get_today() function

Value

Returns a data.frame containing all the historical data for the specified stock.

If the plural variant is used it'll add a symbol column that'll contain the name of the company.

Examples

1
2
3
4
5
6
7
8
if( bcr:::check_internet() ) {
head(stock("Wafa Assur"), 20)
head(stock(), 20) # same as runing stock("MASI")
head(stock("MADEX"), 20)
}
if( bcr:::check_internet() ) {
head(stocks("Masi", "MADEX"), 20)
}

moutikabdessabour/bcr documentation built on June 19, 2021, 12:21 a.m.