R: How to pass two filepaths as parameters to a function?
<p>I'm trying to pass two file paths as parameters to a function. But it's not accepting the inputs. Here's what I'm doing:</p>

<pre><code>partition&lt;-function(d1,p2){

     d1&lt;-read.table(file = d1, fill = TRUE)
     p2&lt;-read.table(file = p2, fill = TRUE) 

}
</code></pre>

<p>and while calling the function:</p>

<pre><code>partition("samcopy.txt","partcopy.txt")
</code></pre>

<p>The .txt is not being read by the variables inside the function. How to make the variables read the table?</p>