search for: btcusdt

Displaying 2 results from an estimated 2 matches for "btcusdt".

2023 Oct 17
1
transform a list of arrays to tibble
...ed and then put them back on the tibble. In your code, something like this: save.names <- names(my.ret.lst) result.tib <- as_tibble_col(unlist(my.ret.lst), column_name = 'return') rownames(result.tib) <- save.names Unfortunately, I got an error message: > save.names [1] "BTCUSDT" "ETHUSDT" "TRXUSDT" > rownames(result.tib) <- save.names Warning message: Setting row names on a tibble is deprecated. Error in exists(cacheKey, where = .rs.WorkingDataEnv, inherits = FALSE) : invalid first argument Error in assign(cacheKey, frame, .rs.CachedData...
2023 Oct 17
1
transform a list of arrays to tibble
I work with a list of crypto assets daily closing prices in a xts class. Here is a limited example: asset.xts.lst <- list(BTCUSDT = structure(c(26759.63, 26862, 26852.48, 27154.15, 27973.45), dim = c(5L, 1L), index = structure(c(1697068800, 1697155200, 1697241600, 1697328000, 1697414400), tzone = "UTC", tclass = "Date"), class = c("xts", "zoo")), ETHUSDT = structure(c(1539.61, 1552.16,...