View source: R/aggregate_merge_data_bitcoincharts.R
aggregate_merge_bictoincharts_data | R Documentation |
This function aggregates and merges time series data downloaded from bitcoincharts
aggregate_merge_bictoincharts_data(
data_list,
level_of_aggregation = "minutes",
aggregate_every = 15
)
data_list |
is a list containing the dataframes of several time series data downloaded from bitcoincharts |
level_of_aggregation |
can be 'seconds', 'minutes' or 'hours' |
aggregate_every |
defines how many intervals to aggregate (depends on level_of_aggregation) |
This function aggregates and merges time series data downloaded from bitcoincharts and provided to the function as a list. It returns a list containing the dataframe with the merged price data according to the desired level of aggregation at the intraday level, as well as a dataframe with the merged daily data returns.
results a list containing the merged intraday bitcoin prices (an xts object) and their daily returns (an xts object)
## Not run:
library(highfrequency)
localbtcMXN <-bitcoincharts_single_download(name = "localbtcMXN.csv.gz")
btcdeEUR <-bitcoincharts_single_download(name = "btcdeEUR.csv.gz")
krakenEUR <-bitcoincharts_single_download(name = "krakenEUR.csv.gz")
localbtcINR <-bitcoincharts_single_download(name = "localbtcINR.csv.gz")
coinbaseUSD <-bitcoincharts_single_download(name = "coinbaseUSD.csv.gz")
data5<-list(localbtcMXN =localbtcMXN, btcdeEUR=btcdeEUR, krakenEUR=krakenEUR,
localbtcINR=localbtcINR, coinbaseUSD=coinbaseUSD)
data_clean<-aggregate_merge_bictoincharts_data(data_list=data5)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.