• 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ónf250f238e4adec02ada03b9624a70d8e00021fd6 (tree)
Tiempo2024-03-03 19:06:41
AutorLorenzo Isella <lorenzo.isella@gmai...>
CommiterLorenzo Isella

Log Message

I now save also time-stamped versions of the portfolio compositions as pdf files.

Cambiar Resumen

Diferencia incremental

diff -r cb50cf6677fc -r f250f238e4ad R-codes/process_time_portfolios.R
--- a/R-codes/process_time_portfolios.R Sat Mar 02 10:20:41 2024 +0100
+++ b/R-codes/process_time_portfolios.R Sun Mar 03 11:06:41 2024 +0100
@@ -151,7 +151,8 @@
151151 my_time_stamp <- top_recent |>
152152 select(timestamp) |>
153153 slice(1) |>
154- pull(timestamp)
154+ pull(timestamp) |>
155+ select_left_pattern(".")
155156
156157
157158 top_recent2 <- top_recent |>
@@ -160,8 +161,11 @@
160161 mutate(value2=format_col(asset_value_usdt,1))
161162
162163
163-title2 <- paste("Portfolio at ", my_time_stamp, sep="" ) |>
164- select_left_pattern(".")
164+title2 <- paste("Portfolio at ", my_time_stamp, sep="" )
165+
166+fname2 <- paste("portfolio_now_",my_time_stamp, ".pdf", sep="" )
167+
168+
165169
166170 gpl <- ggplot(top_recent2, aes(y=asset, x=asset_value_usdt## ,
167171 ## fill=relation_to_median
@@ -196,10 +200,15 @@
196200 ggsave("./history_usdt/portfolio_now.pdf", gpl, width=6,height=8)
197201
198202
203+fsave <- paste("./history_usdt/", fname2, sep="")
204+
205+ggsave(fsave, gpl, width=6,height=8)
206+
207+
199208 print("The final value of the portfolio in USDT is, ")
200209 print(total_portfolio_value_usdt)
201210
202211
203-
212+system("detox *")
204213
205214 print("So far so good")