title: How can I save results in list() of a nested for loop? [R]
body: <p>I am trying to get a my_list&lt;-list() or a vector&lt;-c() out of this for-loop. It may be a simple but I can seem to get it.</p>
  <pre><code>seq&lt;-seq(1,4,1)
  </code></pre>
  <pre><code>for (p_try in seq_along(seq)){
    for (p_order  in seq_along(seq)){
      fmla&lt;- paste(&quot;Rent ~ poly(SizeSqft,&quot;, p_order,&quot;) + poly(Bedrooms,&quot;,p_try,&quot;)&quot;)               
      assign(paste(&quot;R&quot;, p_order,p_try, sep = &quot;&quot;),as.formula(fmla))
    }}
  </code></pre>
  <p>Thank you for any help!</p>