ploop运行报错

如下代码,最后一行ploop运行报错:

sym = `C`MS`MS`MS`IBM`IBM`C`C`C$symbol
price= 49.6 29.46 29.52 30.02 174.97 175.23 50.76 50.32 51.29
qty = 2200 1900 2100 3200 6800 5400 1300 2500 8800
timestamp = [09:34:07,09:36:42,09:36:51,09:36:59,09:32:47,09:35:26,09:34:16,09:34:26,09:38:12]
t0 = table(timestamp, sym, qty, price);

t1 = select  sum((qty))  as qty from t0  group by  minute(timestamp) as ts,sym,price;
t2 = select  log((qty))  as qty from t0  group by  minute(timestamp) as ts ,sym,price;

name = `ts`q
typeString = `MINUTE`INT
tResult=table(1:0,name,typeString)
share tResult as shareT

ploop(myFunc,([t1,shareT],[t2, shareT]))
请先 登录 后评论

1 个回答

logger

可以用部分应用来固定参数,最后一行修改为:ploop(myFunc{,shareT},[t1,t2])。

关于部分应用,可以参考部分应用

请先 登录 后评论
  • 1 关注
  • 0 收藏,352 浏览
  • jinzhi 提出于 2021-08-04 16:45