2014-07-25 1 views
0

내가 응답과 함께 입력 한 내용이다 :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 문서가 좀 부족?

답변

1

dropTA의 첫 번째 인수는 실제 함수 자체가 아닌 문자열이어야합니다.

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