I am trying to use prewhiten function(TSA package) in my time series forecasting model. But i am getting below error:
Error in UseMethod("filter_") : no applicable method for 'filter_' applied to
an object of class "c('double', 'numeric')"
main='milk & electricity',ylab='CCF')
The code above works for me.
However, I suspect that you have loaded another package before running this piece of code. In particular, if I load dplyr first
then I can reproduce your error.