title: R: Window Function "Start" after "End"
body: <p>I am having a problem with the window function in <code>R</code>.</p>
  
  <pre><code>newdata1 &lt;-window(mergedall,start=c(as.Date(as.character("2014-06-16"))),end=c(as.Date(as.character("2015-01-31"))))
  </code></pre>
  
  <p>I got this error. I am trying to understand how I can fix this issue. Thank you!</p>
  
  <pre><code>Error in window.default(mergedall, start = c(as.Date(as.character("2014-06-16"))),  : 
    'start' cannot be after 'end'
  In addition: Warning message:
  In window.default(mergedall, start = c(as.Date(as.character("2014-06-16"))),  :
    'end' value not changed`
  </code></pre>