In fact, I realized this is not recommended to give names to rows. A
better approach is to add a column with all names as row. The
following does the job:
asset.stats <- as_tibble_col(unlist(my.ret.lst), column_name =
'Annualized_return')
asset.stats <- rownames_to_column(asset.stats, var =
Arnaud,
Short answer may be that the tibble data structure will not be supporting row
names and you may want to simply save those names in an additional column or
externally.
My first thought was to simply save the names you need and then put them back
on the tibble. In your code, something
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 =
3 matches
Mail list logo