Learn R Programming

GetHFData (version 1.7)

ghfd_get_available_tickers_from_file: Function to get available tickers from downloaded zip file

Description

This function will read the zip file downloaded from Bovespa and output a numeric vector where the names of the elements represents the different tickers and the numeric values as the number of trades for each ticker

Usage

ghfd_get_available_tickers_from_file(out.file)

Arguments

out.file

Name of downloaded file with HFT data from Bovespa

Value

A dataframe with the number of trades for each ticker found in file

Examples

Run this code
# NOT RUN {
## get file from package (usually this would be been downloaded from the ftp)
out.file <- system.file("extdata", 'NEG_OPCOES_20151126.zip', package = "GetHFData")

df.tickers <- ghfd_get_available_tickers_from_file(out.file)

print(head(df.tickers))
# }

Run the code above in your browser using DataLab