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 = 'Asset
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 l
В Tue, 17 Oct 2023 12:12:05 +0530
Sahil Sharma пишет:
> The original formula for Geometric Distribution PDF is
> *((1-p)^x-1)*P*. However, the current r function *dgeom(x, p)* is
> doing this: *((1-p)^x)*P, *it is not reducing 1 from x.
Your definition is valid for integer 'x' starting from 1. (
-- Forwarded message -
From: Sahil Sharma
Date: Tue, Oct 17, 2023 at 12:10 PM
Subject: r-stats: Geometric Distribution
To:
Hey I want to raise one issue in *r-stats **geometric distribution *
function.
I have found the dgeom(x,p) which denotes probability density function of
ge
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 =
5 matches
Mail list logo