title: Error in inherits(x, "Date") : argument "x" is missing, with no default Rstudio
body: <p>I need to create a function where the output is a vector filled with dates. I´ve started with</p>
  
  <pre><code>vlf=function(x)
  {
    output=c(as.Date)
    for(i in (seq(as.Date("2015/09/1"),as.Date("2018/09/1"),by=365))){
      output=c(output,
           ifelse(x&gt;i,x+30,0))
    }
    return(output)
  }
  </code></pre>
  
  <p>Where "x" is a vector of dates
  The problem is that when I try to execute it, I read this error:</p>
  
  <pre><code>Error in inherits(x, "Date") : argument "x" is missing, with no default
  </code></pre>
  
  <p>Do you know how can I solve it?</p>