SMA()throws .Fortran错误

时间:2018-01-30 02:32:03

标签: r time-series

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"`

0 个答案:

没有答案