are you wanting to use stats::filter because you are doing Linear Filtering on a Time Series ? (rather than filtering a dataframe ) ?
if you could provide a reprex I'm hopeful we can fix your issue
are you wanting to use stats::filter because you are doing Linear Filtering on a Time Series ? (rather than filtering a dataframe ) ?
if you could provide a reprex I'm hopeful we can fix your issue