title: Create function names using paste() in R
body: <p>I would like to do the following</p>
  
  <pre><code>X = matrix(0, nrow = p, ncol = N)
  p=5
  N=100
  for (i in 1:N)
  {
  X[1,i] = e1(t[i])
  X[2,i] = e2(t[i])
  X[3,i] = e3(t[i])
  X[4,i] = e4(t[i])
  X[5,i] = e5(t[i])
  }
  </code></pre>
  
  <p>where e1(). e2(), e3(), e4() and e5() are specific functions.</p>
  
  <p>I have tried the following code:</p>
  
  <pre><code>for(j in 1:p)
  {
  for (i in 1:N)
  {
      X[j,i] = as.symbol(paste("e", j, sep = ""))(t[i])
  }
  }
  </code></pre>
  
  <p>But it does not work.</p>
  
  <p>Thanks for your help</p>
  
  <p>Carole</p>