f_get_symbol: This function returns ticker code for a stock

Description Usage Arguments Value

View source: R/f_symbol.R

Description

This function returns ticker code for a stock

Usage

1
f_get_symbol(stock = "NOVO", index = NULL, output = "vector")

Arguments

stock

Stock name. Full stock name not needed as ticker codes for stock names like parameter input is returned.

index

Index name. Supply either stock name or index, not both.

output

string indicating if output should be a vector or data.frame. Default is "vector".

Value

A vector with ticker codes matching the input name(stock or index). If the output parameter is not "vector", then a data.frame with ticker codes and stock names matching input stock name is returned.


kristian-bak/kb.modelling documentation built on Dec. 21, 2021, 7:46 a.m.