-2
bt.prep()
機能を使用してデータをフォーマットしようとしています。誰かがなぜこれが失敗するのか、うまくいけばそれを修正する方法を説明することができますか? Link to github repoSITを使用するとクリーニングデータが失われる
library(quantmod)
#Systematic Investor Toolbox
sit = getURLContent('https://github.com/systematicinvestor/SIT/raw/master/sit.gz', binary=TRUE, followlocation = TRUE, ssl.verifypeer = FALSE)
con = gzcon(rawConnection(sit, 'rb'))
source(con)
close(con)
data <- getSymbols("USD/EUR",src="oanda",env=NULL)
bt.prep(data, align='remove.na')
エラーは次のとおりです。Rilcon42 @
Error in b[[i]] : attempt to select more than one element In addition: Warning message:
In merge.xts(..., all = all, fill = fill, suffixes = suffixes) :
NAs introduced by coercion