Description Usage Arguments Value Author(s) Examples
Function is capable to import file with executed trades log. Files do not have column headers hence function will take care to name columns as well as to perform relevant cleansing
1 | import_data(path_sbxm, trade_log_file)
|
path_sbxm |
|
trade_log_file |
|
Function will return the dataframe with trade data and automatically set proper column types
(C) 2019, 2020 Vladimir Zhbanko
1 2 3 4 5 6 7 8 9 10 11 12 | library(lazytrade)
library(dplyr)
library(readr)
library(lubridate)
path_sbxm <- normalizePath(tempdir(),winslash = "/")
file.copy(from = system.file("extdata", "OrdersResultsT1.csv", package = "lazytrade"),
to = file.path(path_sbxm, "OrdersResultsT1.csv"), overwrite = TRUE)
DFT1 <- import_data(path_sbxm = path_sbxm,
trade_log_file = "OrdersResultsT1.csv")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.