title: Passing column name as parameter to function in R language
body: <p>I have got a function :</p>
  
  <pre><code>aggreg &lt;- function(fileName, param){   
    contents &lt;- read.csv(fileName, header=T)
    #print(contents)  #This displays all contents
    print(contents$param) #gives NULL
  }
  
  &gt; aggreg("test.csv","Close.Price")
  &gt; NULL
  </code></pre>
  
  <p>Please guide further. Thanks:)</p>