修订版 | 5e90a8f3fc471497716e1f5b62f564e1acc1efe0 (tree) |
---|---|
时间 | 2024-02-29 17:01:10 |
作者 | Lorenzo Isella <lorenzo.isella@gmai...> |
Commiter | Lorenzo Isella |
I now print at the end of the code the total value of my portfolio.
@@ -99,14 +99,8 @@ | ||
99 | 99 | ggsave("./history_usdt/portfolio_features.pdf", gpl, width=12,height=8) |
100 | 100 | |
101 | 101 | |
102 | - | |
103 | - | |
104 | - | |
105 | - | |
106 | - | |
107 | - | |
108 | -print("The final value of the portfolio in USDT is, ") | |
109 | -print(df_recent$value_usdt|>sum()) | |
102 | +total_portfolio_value_usdt <- df_recent$value_usdt|> | |
103 | + sum() | |
110 | 104 | |
111 | 105 | top_recent <- df_recent |> |
112 | 106 | summarise(asset_value_usdt=sum(value_usdt), |
@@ -192,5 +186,10 @@ | ||
192 | 186 | ggsave("./history_usdt/portfolio_now.pdf", gpl, width=6,height=8) |
193 | 187 | |
194 | 188 | |
189 | +print("The final value of the portfolio in USDT is, ") | |
190 | +print(total_portfolio_value_usdt) | |
191 | + | |
192 | + | |
193 | + | |
195 | 194 | |
196 | 195 | print("So far so good") |