title: UseMethod("filter") Error while using Lo.Mac function in vrtest package in R
body: <p>I'm getting the following error while using the Lo.Mac function in my laptop.</p>
  <p><em>Error in UseMethod(&quot;filter&quot;) :
  no applicable method for 'filter' applied to an object of class &quot;c('matrix', 'array', 'double', 'numeric')&quot;</em></p>
  <pre><code>data(exrates)
  y &lt;- exrates$ca
  nob &lt;- length(y)
  r &lt;- log(y[2:nob])-log(y[1:(nob-1)])       
  kvec &lt;- c(2,5,10)
  Lo.Mac(r,kvec)
  </code></pre>
  <p>What could be the reason behind this error as I'm running into this problem only on the software and not on the browser? (<a href="https://rdrr.io/cran/vrtest/man/Lo.Mac.html" rel="nofollow noreferrer">https://rdrr.io/cran/vrtest/man/Lo.Mac.html</a>)</p>