Revisão | fd149a6c846460d7ba109971738e598236739443 (tree) |
---|---|
Hora | 2024-12-17 01:28:40 |
Autor | Lorenzo Isella <lorenzo.isella@gmai...> |
Commiter | Lorenzo Isella |
I use now the number of assets I want to consider as a parameter.
@@ -30,7 +30,7 @@ | ||
30 | 30 | |
31 | 31 | n_assets <- 16 ## how many assets to consider |
32 | 32 | |
33 | -value_min <- 2 ## min_value of the asset to be considered | |
33 | +n_assets <- 10 ## number of asset to be considered | |
34 | 34 | |
35 | 35 | ## mylist_slug <- c("cardano" , "avalanche", |
36 | 36 | ## "injective", |
@@ -102,7 +102,7 @@ | ||
102 | 102 | arrange(desc(total_value_usdt)) |> |
103 | 103 | ## slice(1:n_assets) |> |
104 | 104 | ## filter(total_value_usdt>value_min) |> |
105 | - slice(1:10) |> | |
105 | + slice(1:n_assets) |> | |
106 | 106 | mutate(asset=if_else(asset=="BEAMX", "BEAM", asset)) |> |
107 | 107 | pull(asset) |
108 | 108 |