opt_aggregate_results: Function to aggregate trading results from multiple folders...

Description Usage Arguments Details Value Examples

View source: R/opt_aggregate_results.R

Description

Read multiple '.csv' files stored in different folders Store results to the intermediate dataframe.

[Deprecated]

Usage

1

Arguments

path_data
  • String, path to the folder containing subfolders

Details

user must provide the path to the files in the folders all files in subfolders are read and aggregated into one data object. Data object is sorted in descending order by order close time

Value

Dataframe with trading results

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
 library(lazytrade)
 library(readr)
 library(dplyr)
 library(magrittr)
 library(lubridate)

 dir <- normalizePath(tempdir(),winslash = "/")

 file.copy(from = system.file("extdata/RES", package = "lazytrade"),
           to = dir, recursive = TRUE)

 DF_RES <- opt_aggregate_results(path_data = file.path(dir, "RES"))

lazytrade documentation built on Dec. 16, 2021, 1:06 a.m.