Getting names from ... (dots) <p>In improving an <code>rbind</code> method, I'd like to extract the names of the objects passed to it so that I might generate unique IDs from those.</p> <p>I've tried <code>all.names(match.call())</code> but that just gives me:</p> <pre><code>[1] "rbind" "deparse.level" "..1" "..2" </code></pre> <p>Generic example:</p> <pre><code>rbind.test &lt;- function(...) { dots &lt;- list(...) all.names(match.call()) } t1 &lt;- t2 &lt;- "" class(t1) &lt;- class(t2) &lt;- "test" &gt; rbind(t1,t2) [1] "rbind" "deparse.level" "..1" "..2" </code></pre> <p>Whereas I'd like to be able to retrieve <code>c("t1","t2")</code>.</p> <p>I'm aware that in general one cannot retrieve the names of objects passed to functions, but it seems like with ... it might be possible, as <code>substitute(...)</code> returns <code>t1</code> in the above example.</p>