title: R equivalent of Stata's 'summarize'?
body: <p>In Stata, <code>summarize</code> prints a brief statistical summary of all variables in the current workspace. In R, <code>summary(&lt;myvariable&gt;)</code> does something similar for a particular <code>&lt;myvariable&gt;</code>. </p>
  
  <p><strong>Q:</strong> In R, how should I print a statistical summary of ALL relevant variables in my workspace?</p>
  
  <p>I tried:</p>
  
  <pre><code>x &lt;- runif(4)
  y &lt;- runif(4)
  z &lt;- runif(3)
  w &lt;- matrix(runif(4), nrow = 2)
  
  sapply(ls(), function(i) {if (class(get(i)) == "numeric") summary(get(i))})
  </code></pre>
  
  <p>which gets close to what I want. But it still prints</p>
  
  <pre><code>$w
  NULL
  ...
  </code></pre>
  
  <p>which is undesirable. Also, this code throws an error when there's a variable of type closure in my workspace...</p>
  
  <p>I feel like I'm going off into the weeds here. There must be a simpler, straightforward way of more-or-less replicating Stata's <code>summarize</code> in R, right?</p>