Adapt a CSV of precomputed indicators
Usage
ledgr_adapter_csv(
csv_path,
value_col,
date_col = "ts_utc",
instrument_col = "instrument_id",
id
)Examples
csv_path <- tempfile(fileext = ".csv")
utils::write.csv(data.frame(
ts_utc = c("2020-01-01T00:00:00Z", "2020-01-02T00:00:00Z"),
instrument_id = "AAA",
my_value = c(1.5, 2.5)
), csv_path, row.names = FALSE)
ind <- ledgr_adapter_csv(csv_path, value_col = "my_value", id = "my_csv_value")
ind$id
#> [1] "my_csv_value"