• 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ón5ee2b132b8bef339bc188b969a8d955c5ba3ff56 (tree)
Tiempo2024-01-07 06:13:34
AutorLorenzo Isella <lorenzo.isella@gmai...>
CommiterLorenzo Isella

Log Message

I now give the currency (EUR or USD) as an input parameter.

Cambiar Resumen

Diferencia incremental

diff -r 7a619408720f -r 5ee2b132b8be R-codes/technical_analysis.R
--- a/R-codes/technical_analysis.R Sat Jan 06 22:10:04 2024 +0100
+++ b/R-codes/technical_analysis.R Sat Jan 06 22:13:34 2024 +0100
@@ -18,7 +18,8 @@
1818
1919 initial_day <- gsub('-', '', today()-days_back)
2020
21-
21+currency <- ## "EUR"
22+"USD"
2223
2324 mylist_slug <- c("cardano" , "iotex", "cosmos", "polygon",
2425 "algorand", "kava", "solana", "cartesi",
@@ -38,7 +39,7 @@
3839 filter(slug %in% mylist_slug)
3940
4041 coin_hist <- crypto_history(coins,
41- convert = "EUR",
42+ convert = currency,
4243 ## limit=3,
4344 start_date=initial_day,
4445 end_date=final_day, finalWait=FALSE) |>
@@ -165,7 +166,7 @@
165166 ggtitle(title_name)+
166167 facet_wrap( ~symbol, nrow = 6, scales = "free_y")+
167168 my_ggplot_theme2("right")+
168- ylab("Coin Price in EUR")+
169+ ylab(paste("Coin Price in ", currency, sep=""))+
169170 xlab(NULL)
170171
171172 fname <- paste("./history_usdt/coin_prices.pdf")
@@ -180,7 +181,7 @@
180181 ggtitle(title_name)+
181182 facet_wrap( ~symbol, nrow = 6, scales = "free_y")+
182183 my_ggplot_theme2("right")+
183- ylab("Coin Volume in EUR")+
184+ ylab(paste("Coin Volume in ", currency, sep=""))+
184185 xlab(NULL)
185186
186187 fname <- paste("./history_usdt/coin_volumes.pdf")