title: Get back sequence of dataframes from sapply function in R
body: <p>Here is my code:</p>
  
  <pre><code>test_df &lt;- data.frame(col_1 = seq(1,5), col_2 = seq(1,5))
  
  test_function &lt;- function(var_1 = NA, test_df = NA){
      test_df$col_1 &lt;- test_df$col_1 + var_1
      return(test_df)
    }
  
  sapply_result &lt;-sapply(seq(7,9), test_function, test_df = test_df) 
  </code></pre>
  
  <p>I expect to get 3 data frames from it, where each data frame looks like original one <code>test_df</code>, but with <code>col_1</code> incremented by element of the sequence.</p>
  
  <p>Here is what I actually get back:</p>
  
  <pre><code>    [,1]      [,2]      [,3]     
  col_1 Integer,5 Integer,5 Integer,5
  col_2 Integer,5 Integer,5 Integer,5
  </code></pre>
  
  <p>How do I fix it?</p>