Learn R Programming

FinancialInstrument (version 1.3.1)

ls_underlyings: show names of underlyings

Description

shows names that are stored in the underlying_id slot of derivative instruments

Usage

ls_underlyings(pattern = NULL, match = TRUE)

Arguments

pattern

an optional regular expression. Only names matching ‘pattern’ are returned.

match

require exact match?

Value

chr vector of names of unique underlying_ids

Details

first calls ls_derivatives, then looks for unique underlying_ids. If no derivatives have been defined, nothing will be returned.

See Also

ls_instruments_by, ls_derivatives, ls_options, ls_futures

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
ls_underlyings()
# }

Run the code above in your browser using DataLab