title: Return a dataframe from a function and store it in the workspace
body: <p>This is my first week working with R and there is one thing about function I cannot seems to manage.</p>
  
  <pre><code>df &lt;- data.frame(a = c(1:10),
               b = c("a", "a", "b", "c", "c", "b", "a", "c", "c", "b"))
  
  testF = function(select) {
  dum = subset(df, b == select)
  }
  
  lapply(unique(df$b), testF)
  </code></pre>
  
  <p>This function now just prints the the data sets on screen. But I would like to store the results as separate data frames in my workspace. In this example this would give three data frames; a, b and c.</p>
  
  <p>Thank for the help.</p>