title: how to feed the result of a pipe chain (magrittr) to an object
body: <p>This is a fairly simply question. But I couldn't find the answer per google/stackexchange and looking at the documentation of magrittr.
  How do you feed the result of a chain of functions which are connected via %>% to create a vector?</p>
  
  <p>what I saw most people do is:</p>
  
  <pre><code>a &lt;-
  data.frame( x = c(1:3), y = (4:6)) %&gt;%
  sum()
  </code></pre>
  
  <p>but is there also a solution where I can just pipe-chain the result to feed it to an object, maybe an alias or sth of the like, somewhat like this:</p>
  
  <pre><code>data.frame( x = c(1:3), y = (4:6)) %&gt;%
  sum() %&gt;%
  a &lt;- ()
  </code></pre>
  
  <p>this would help with keeping all of the code in the same logic of feeding results forward "down the pipe".</p>