ResultParser | R Documentation |
This result file parser works currently only with csv files. Please read the vignette for further details (coming soon). We will restructure our result reports soon. So, this function may change dramatically. This object can be used for plotting your results.
R6Class
object.
new(dir)
This method is used to create object of this class
with dir
as the directory of result files.
parseReport(path = "analysis_report.csv")
This method parses the analysis report file (analysis_report.csv).
parseAR(path = "ar_results.csv")
This method parses the
abnormal return file (ar_results.csv). Furthermore, it triggers
parseReport
and join firm and index name.
parseCAR(path = "car_results.csv")
This method parses the
cumulative abnormal return file (ar_results.csv). Furthermore, it triggers
parseReport
and join firm and index name.
destDir
Result dir.
get_request_file()
Parse request file
ResultParser$get_request_file(path = "01_RequestFile.csv")
path
path to request file.
get_analysis_report()
Parse request file
ResultParser$get_analysis_report(path = "analysis_report.csv")
path
path to request file.
get_ar()
Parse request file
ResultParser$get_ar( path = "ar_results.csv", analysis_report_tbl = NULL, request_tbl = NULL )
path
path to request file.
analysis_report_tbl
PArsed analysis report
request_tbl
parsed request file
get_car()
Parse Cumulative Abnormal Return
ResultParser$get_car(path = "car_results.csv", analysis_report_tbl = NULL)
path
The path to the CAR result CSV file.
analysis_report_tbl
The analyis report table. It will be used for extracting the group.
get_aar()
Parse AAR results
ResultParser$get_aar(path = "aar_results.csv", analysis_report = NULL)
path
path to aar result file.
analysis_report
Extracted analysis report
get_caar()
Parse caar results
ResultParser$get_caar(path = "caar_results.csv")
path
path to caar result file.
clone()
The objects of this class are cloneable with this method.
ResultParser$clone(deep = FALSE)
deep
Whether to make a deep clone.
## Not run:
# Assume you already performed an Event Study and result files are saved in
# the actual working directory.
estParser <- ResultParser$new()
# parse request file
estParser$parseRequestFile("01_RequestFile.csv")
# parse result files
estParser$parseReport("Analysis report.csv")
estParser$parseAR("AR results.csv")
estParser$parseAAR("AAR results.csv")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.