如何在加载dplyr时使用tsDyn :: star?

时间:2016-05-02 13:43:39

标签: r dplyr

dplyr加载library(tsDyn) library(dplyr) mod.star <- star(log10(lynx), mTh=c(0,1), control=list(maxit=3000)) # Error in lag(x, lags[i]) : n must be a single positive integer 时,tsDyn::star的示例代码无法正常工作

tsDyn::star

这似乎是因为dplyr::lag会覆盖基本延迟。如果dplyr已分离,则detach("package:dplyr") mod.star <- star(log10(lynx), mTh=c(0,1), control=list(maxit=3000)) # Testing linearity... p-Value = 0.0001831653 # The series is nonlinear. Incremental building procedure: # Building a 2 regime STAR. # Performing grid search for starting values... 可以正常工作:

tsDyn::star

使用var data = { "par1": "value1", "par2": "value 2" } var params = $.param(data); if (location.href.match(/\?/)) { location.href += params; } else { location.href += '?' + params; } 时如何继续使用dplyr管道和数据修改动词?

0 个答案:

没有答案