title: R - Call a function from function name that is stored in a variable?
body: <p>I'm writing some R code and I want to store a list of Function names and what they are for in a dataframe, and then query that dataframe to determine which function to call, but I can't figure out how to do this, or if it's even possible.</p>
  
  <p>As a basic example, let's assume the function name is just stored as a string in a variable, how do I call the function based on the function name stored in that variable?</p>
  
  <pre><code>MyFunc &lt;-function() {
      # Do some stuff...
      print("My Function has been called!!!")
      return(object)
  }
  
  FuncName &lt;- "MyFunc()"
  Result &lt;- FuncName
  </code></pre>
  
  <p>I need to make </p>
  
  <pre><code>Result &lt;- FuncName
  </code></pre>
  
  <p>Work the same as </p>
  
  <pre><code>Result &lt;- MyFunc()
  </code></pre>
  
  <p>Also, passing objects, or other variables, to the functions is not a concern for what I am doing here, so those () will always be empty.  I realize passing variables like this might get even more complicated.</p>