Skip to content
Prev 118768 / 398498 Next

Names of objects passed as ... to a function?

On Sat, 23 Jun 2007, Gavin Simpson wrote:

            
That's a little tricky.  The following may suffice:

foo <- function(...)
{
   as.character(match.call())[-1]
}

The problem is that under certain circumstances match.call can give names 
like '..2'
[1] "..1" "..2"

and I don't know a comprehensive R-level solution to that.