以下是我在回复中输入的内容:
> 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文档相当稀疏?
答案 0 :(得分:1)
dropTA
的第一个参数应该是字符串,而不是实际的函数本身。
dropTA("SMA")
dropTA("addSMA")