title: Call Arguments of Function inside Function / R language
body: <p>I have a function:</p>
  
  <pre><code>func &lt;- function (x)
  {
    arguments &lt;- match.call()
    return(arguments)
  }
  </code></pre>
  
  <p>1) If I call my function with specifying argument in the call:</p>
  
  <pre><code>func("value")
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>func(x = "value") 
  </code></pre>
  
  <p>2) If I call my function by passing a variable:</p>
  
  <pre><code>my_variable &lt;-"value"
  func(my_variable)
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>func(x = my_variable)
  </code></pre>
  
  <p>Why is the first and the second result different?<br>
  Can I somehow get in the second call "func(x = "value")"?</p>
  
  <p>I'm thinking my problem is that the Environment inside a function simply doesn't contain values if they were passed by variables. The Environment contains only names of variables for further lookup. Is there a way to follow such reference and get value from inside a function?  </p>