• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisióna1bf8796b4e223389f58561c612186c6d361bb40 (tree)
Tiempo2024-01-04 17:36:07
AutorLorenzo Isella <lorenzo.isella@gmai...>
CommiterLorenzo Isella

Log Message

I improved the code in case it is impossible to retrieve some prices.

Cambiar Resumen

Diferencia incremental

diff -r 80edf881e71b -r a1bf8796b4e2 R-codes/process_time_portfolios.R
--- a/R-codes/process_time_portfolios.R Wed Jan 03 19:35:14 2024 +0100
+++ b/R-codes/process_time_portfolios.R Thu Jan 04 09:36:07 2024 +0100
@@ -10,8 +10,16 @@
1010 threshold <- 1. ##min_value of usdt for the top assets to be considered
1111
1212
13-df <- read_all_csv("./history_usdt/") ## |>
14- ## mutate(timestamp=as_datetime(timestamp))
13+df_ini <- read_all_csv("./history_usdt/")
14+
15+df <- df_ini |>
16+ filter(!is.na(value_usdt))
17+
18+errors <- df_ini |>
19+ filter(is.na(value_usdt))
20+
21+save_excel(errors, "./history_usdt/possible_errors.xlsx")
22+
1523
1624 df_evol1 <- df |>
1725 group_by(asset) |>