View source: R/opt_aggregate_results.R
opt_aggregate_results | R Documentation |
Read multiple '.csv' files stored in different folders Store results to the intermediate dataframe.
opt_aggregate_results(path_data)
path_data |
|
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
Dataframe with trading results
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"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.