title: How to check if data frame exists in R environment?
body: <p>I am trying to add rows to a data frame if it exists, or assign it to initial data frame in case it doesn't exists. I have tried <code>exists()</code>, <code>missing()</code>, etc, but nothing is working for me.</p>
  
  <pre><code>exists(data) &amp;&amp; is.data.frame(get(data))
  </code></pre>
  
  <blockquote>
    <p>Error in exists(data) : object 'data' not found</p>
  </blockquote>
  
  <p>Any help would be highly appreciated.
  I am trying to do something like</p>
  
  <pre><code>if(exists(data))
      data &lt;- rbind(data,new_data)
    else
      data &lt;- new_data
  </code></pre>