title: r - Iterating with 2 variables in for
body: <p>Is there a construct in R where we can iterate with two variables at the same time in R? Like so,</p>
  
  <pre><code>for(i in list1 and j in list2)
  </code></pre>
  
  <p>The list1 and list2 can be any iterable.</p>