title: Winsor returns function
body: <p>The below is an extract of a zoo object which I am trying to winsorize using <code>winsor</code> from <code>psych</code> package:</p>
  
  <pre><code>x &lt;- structure(c(0.0400337546529555, -0.0320371743076633, 0.0106006766976862, 
  -0.011406282992093, -0.018676165248018, 0.0275956214868875, 0.00473575019758404, 
  0.0986083620222542, 0.00615420656427005, 0.00709069372334476), .Names = c("1984-01", 
  "1984-02", "1984-03", "1984-04", "1984-05", "1984-06", "1984-07", 
  "1984-08", "1984-09", "1984-10"), index = structure(c(5113, 5144, 
  5173, 5204, 5234, 5265, 5295, 5326, 5357, 5387), class = "Date"), class = c("zooreg", 
  "zoo"), frequency = 1)
  </code></pre>
  
  <p>I use:</p>
  
  <pre><code>winsor(x, trim=0.1)
  </code></pre>
  
  <p>I get the following:</p>
  
  <pre><code>function () 
  .Last.value
  &lt;environment: namespace:gdata&gt;
  </code></pre>
  
  <p>I tried the function with the following data which has the same class (i.e. <code>zoo</code> and <code>zooreg</code>):</p>
  
  <pre><code>a &lt;- structure(c(1, 2, 3), .Dim = c(3L, 1L), .Dimnames = list(NULL, 
          "a"), index = structure(c(5113, 5144, 5173), class = "Date"), frequency = 1, class = c("zooreg", 
      "zoo"))
  </code></pre>
  
  <p>It worked fine with <code>a</code> but not sure why it returns the above for that specific type of data <code>x</code>.</p>