Re: [R] transform a list of arrays to tibble

2023-10-17 Thread arnaud gaboury
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 =

Re: [R] transform a list of arrays to tibble

2023-10-17 Thread avi.e.gross
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

Re: [R] Fwd: r-stats: Geometric Distribution

2023-10-17 Thread Ivan Krylov
В 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.

[R] Fwd: r-stats: Geometric Distribution

2023-10-17 Thread Sahil Sharma
-- 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

Re: [R-es] Resumen de R-help-es, Vol 176, Envío 10

2023-10-17 Thread Andrés Hirigoyen
Gracias! El mar, 17 oct 2023 a la(s) 07:06, escribió: > Envíe los mensajes para la lista R-help-es a > r-help-es@r-project.org > > Para subscribirse o anular su subscripción a través de la WEB > https://stat.ethz.ch/mailman/listinfo/r-help-es > > O por correo electrónico,

[R] transform a list of arrays to tibble

2023-10-17 Thread arnaud gaboury
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 =