knitr::opts_chunk$set(echo = TRUE)
library(scrAndFun)
library(Data)
library(kableExtra)

coinList.xts <- list(
  BitCoinYahoo.xts = xts::xts(BitCoinYahoo[,2:7], order.by = BitCoinYahoo[,1]),
  BitCashYahoo.xts = xts::xts(BitCashYahoo[,2:7], order.by = BitCashYahoo[,1]),
  EthereumYahoo.xts = xts::xts(EthereumYahoo[,2:7], order.by = EthereumYahoo[,1]),
  RippleYahoo.xts = xts::xts(RippleYahoo[,2:7], order.by = RippleYahoo[,1])
)

coinList.xts <- sapply(coinList.xts, function(x) {
  cl <- quantmod::Cl(x)
  x$re.proc <- (cl[-1] - lag(cl)[-1]) / lag(cl)[-1]
  x
})

To Christian Rix-Nielsen at meeting 26 th. October 2018



3schwartz/SpecialeScrAndFun documentation built on May 4, 2019, 6:29 a.m.