title: Create a looped variable in R
body: <p>I'm new to R and I'm trying to create a loop in R with a string <code>mod</code> and a variable <code>x</code></p>
  <p>my code so far looks like this <code>m=1</code> and <code>b=1</code> at the start of the code</p>
  <pre><code>  for (i in 1:5){
    mod = 'mod'
    mod + as.character(m) = b
    m = as.numeric(m)
    m = m+1
    b = (b + 1) * 2
  }
  </code></pre>
  <p>what I want as an output is:</p>
  <pre><code>mod1 = 1
  mod2 = 4
  mod3 = 10
  </code></pre>
  <p>Is this possible or am I overthinking this problem?</p>