title: Using pipes within map() in R
body: <p>I'm getting unexpected results when attempting to pipe inside map()</p>
  
  <pre><code>map(ls(), ~ . %&gt;% get %&gt;% dim)
  </code></pre>
  
  <p>returns the following message:</p>
  
  <pre><code>Functional sequence with the following components:
  
   1. get(.)
   2. dim(.)
  
  Use 'functions' to extract the individual functions. 
  </code></pre>
  
  <p>I don't really know how functions() would get me the result I want.</p>
  
  <p>Is there a way to do it with pipes and map?</p>
  
  <p>Without using pipes, </p>
  
  <pre><code>map(ls(), ~ get(dim(.)))
  </code></pre>
  
  <p>, the result is what I would expect.</p>