compile_exchange_data: Compile the exchange files inside a directory

Description Usage Arguments Value Examples

Description

This is used to compile all the individual files for different dates into compiled files.

Usage

1
2
compile_exchange_data(data_path = "./data", exchange = c("both", "nse",
  "bse"), delete_component_files = TRUE, quiet = FALSE)

Arguments

data_path

The path that contains the data files you want to compile. Deafults to the data folder in the current working directory.

exchange

Specifies the exchange files you want to compile. One of "both", "nse" or "bse". If both is specified, the nse component files are compiled into nse_compiled_latest_date.csv and bse files are compiled into bse_compiled_latest_date.csv. Both the nse and bse compiled files are parsed and combined into both_compiled_latest_date. Dedaults to "both".

delete_component_files

Deletes all the individual files and retains only the compiled files.

quiet

Controls the download status message. If you do not want the download status on each day, TRUE should be specified. Defaults to FALSE.

Value

Returns the compiled dataframe and also has the returned dataframe written out as a csv in the folder it compiles.

Examples

1
2
3
4
## Not run: 
compile_exchange_data(data_path = "./data", exchange = "both")

## End(Not run)

ilangurudev/IndianStocksR documentation built on May 12, 2019, 4:36 a.m.