Learn R Programming

Trading (version 3.2)

ParseTrades: Parse trades through a .csv file.

Description

Parse trades through a .csv file. In case no file name is given, an example file is automatically loaded containing trades corresponding to Basel's SA-CCR regulation (the example trades file can be found on the extdata folder in the installation library path)

Usage

ParseTrades(csvfilename)

Value

A list of trades

Arguments

csvfilename

the name of csv file containing the trades

Author

Tasos Grivas <tasos@openriskcalculator.com>

Examples

Run this code

## calling ParseTrades() without an argument loads a test file containing all
## the different trade types supported
example_trades = ParseTrades()

Run the code above in your browser using DataLab