title: Function to create multiple lists in R
body: <p>I'd like to be able to create a function that returns 3 lists. For instance:</p>
  
  <pre><code>Objects &lt;- function(SetType, 2Type){
    1Set &lt;- list()
    1Set$type &lt;- SetType
    2Set &lt;- list()
    2Set$type &lt;- 2Type
    3Set &lt;- list()
  
    return(1Set)
    return(2Set)
    return(3Set)
  }
  </code></pre>
  
  <p>This only returns 1Set.</p>
  
  <p>One option that I can think of is to create 2 functions that simply create 2Set and 3Set and then call upon them in the Objects function, but is there a better way of achieving this?</p>