dropTA如何工作?

时间:2014-07-25 21:32:40

标签: r quantmod

以下是我在回复中输入的内容:

> barChart(SBGL)
> addSMA(n=50)
> dropTA(SMA)
Error in ta[cta] : object of type 'closure' is not subsettable
> dropTA(addSMA)
Error in ta[cta] : object of type 'closure' is not subsettable

是我还是quantmod文档相当稀疏?

1 个答案:

答案 0 :(得分:1)

dropTA的第一个参数应该是字符串,而不是实际的函数本身。

dropTA("SMA")
dropTA("addSMA")