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管道和数据修改动词?