checkFiles: Check EventStudy input files

Description Usage Arguments Examples

View source: R/dataHandling.R

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

1
2
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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)

EventStudyTools/api-wrapper.r documentation built on May 7, 2018, 4:26 p.m.