stocks_metadata: Get Stocks Names and Associated HTML Values

Description Usage Arguments Value Examples

Description

This helper function extracts names and HTML values (options values) of all listed stocks in Casablanca Stock Exchange.

Usage

1
stocks_metadata(request = NULL, with_values = TRUE)

Arguments

request

The object returned by an HTTP GET request. NULL by default.

with_values

Boolean vector of length one indicating if the HTML values should be returned or not. TRUE by default.

Value

A character vector containing all listed stocks. If with_value is true, a named vector of HTML values is returned.

Examples

1
2
3
## Not run: stocks_metadata()
## Not run: stocks_metadata(with_values = FALSE)
## Not run: stocks_metadata(get_request, FALSE)

blnash508/CSE documentation built on May 3, 2019, 11:52 p.m.