title: Summarizing a dataframe in R with multiple functions in place?
body: <p>I am new to R and trying to summarize a dataframe with multiple functions and I would like the result to appear in the same column, rather than in separated columns for each function. For example, my data set looks something like this</p>
  <pre><code>data =  
    A  B
    ----
    1  2
    2  2
    3  2
    4  2
  </code></pre>
  <p>And I call <code>summarize_all(data, c(min, max))</code> the dataframe becomes</p>
  <pre><code>a_fn1 b_fn1 a_fn2 b_fn2
      1     2     4     2
  </code></pre>
  <p>How can I make it so that the result of the summarize_all becomes this:</p>
  <pre><code>  A  B
    ----
    1  2
    4  2
  </code></pre>
  <p>Thanks</p>