dropTA是如何工作的?

dropTA是如何工作的?,r,quantmod,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文档比较稀疏?dropTA的第一个参数应该是

以下是我键入的内容和回复:

> 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文档比较稀疏?

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

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