industry_func: Industry Function Factory

View source: R/get_industry.R

industry_funcR Documentation

Industry Function Factory

Description

Industry Function Factory

Usage

industry_func(industry)

Arguments

industry

a character scaler with industry defined names. Can be obtained from list_industries()

Details

This is a function factory where you can create your own function to get the historical data of any industry. it has the following parameters. start_date The start date of the query. Date is a string that needs to be in yyyy-mm-dd format end_date The end date of the query. Date is a string that needs to be in yyyy-mm-dd format use_cache logical operator for using cached data

Value

returns a function that can be used to obtain historical records of specific industry

Examples

get_banks <- industry_func("banks")



Hussain-Alsalman/tasi documentation built on Sept. 7, 2024, 1:17 p.m.