checkFiles: Check EventStudy input files

View source: R/dataHandling.R

checkFilesR Documentation

Check EventStudy input files

Description

Check each input file plus inter file relations, whether market index and firm identifier in request file match market index in market_data and firm identifier in in firm_data file.

Usage

checkFiles(
  dataFiles = c(request_file = "01_RequestFile.csv", firm_data = "02_firmData.csv",
    market_data = "03_MarketData.csv"),
  returnData = F
)

Arguments

dataFiles

A named character vector. The names must be request_file, firm_data, and market_data

returnData

returns the data as list of data.frames

Examples

## Not run: 
# save example files to current working directory
getSP500ExampleFiles()

dataFiles <- c("request_file" = "01_RequestFile.csv", 
               "firm_data"    = "02_firmData.csv", 
               "market_data"  = "03_MarketData.csv")
               
checkFiles(dataFiles)

## End(Not run)


EventStudy documentation built on March 31, 2023, 5:43 p.m.