TTR坏了吗?我试图使用以下示例代码让SMA()在R 3.4.3中工作:
kings <- scan("http://robjhyndman.com/tsdldata/misc/kings.dat",skip=3)
kingstimeseries <- ts(kings)
kingstimeseriesSMA3 <- SMA(kingstimeseries,n=3)
plot.ts(kingstimeseriesSMA3)
最后一行抛出
Error in .Fortran("runsum", ia = as.double(x[beg:NROW(x)]), lia = as.integer(len), :
"runsum" not available for .Fortran() for package "TTR"`